## 签名所需参数
1 .参数名称:time 数据类型:时间戳,例如 1564969502
2 .参数名称:rand 整型数据,例如 9282
3 .参数名称:key 由平台地宫
4 .参数名称:secret 秘钥有平台提供
## 签算法:
```
function arithmetic($time,$rand,$key,$secret){
$data['timeStamp'] = $time;
$data['randomStr'] = $rand;
$data['appkey'] = $key;
$data['appsecret'] = $secret;
//按照首字母大小写顺序排序
sort($arr,SORT_STRING);
//拼接成字符串
$str = implode($data);
//进行加密
$signature = sha1($str);
$signature = md5($signature);
$signature = md5($signature);
//转换成大写
$signature = strtoupper($signature);
return $signature;
}
```