public function get_sign($params,$paykey){
$signStr = "";
ksort($params);
foreach ($params as $key => $value){
if ($value != '') {
$signStr .= $key . "=" . $value . "&";
}
}
$signStr .= "key=" . $paykey;
// dump($signStr);
// die;
$sign = md5($signStr);
return $sign;
}
对接支付常用的sign方法
最新推荐文章于 2024-11-01 10:26:53 发布