正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -217,7 +217,7 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -217,7 +217,7 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
217 | $nonceStr = $this->createNoncestr(); | 217 | $nonceStr = $this->createNoncestr(); |
218 | // 这里参数的顺序要按照 key 值 ASCII 码升序排序 j -> n -> t -> u | 218 | // 这里参数的顺序要按照 key 值 ASCII 码升序排序 j -> n -> t -> u |
219 | $string = "jsapi_ticket=$ticket&noncestr=$nonceStr×tamp=$timestamp&url=$url"; | 219 | $string = "jsapi_ticket=$ticket&noncestr=$nonceStr×tamp=$timestamp&url=$url"; |
220 | - $signature = $string; | 220 | + $signature = sha1($string); |
221 | $signPackage = array ( | 221 | $signPackage = array ( |
222 | "appId" => "wxdf34ec2179e19b9a", | 222 | "appId" => "wxdf34ec2179e19b9a", |
223 | "nonceStr" => $nonceStr, | 223 | "nonceStr" => $nonceStr, |
-
请 注册 或 登录 后发表评论