作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

@@ -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&timestamp=$timestamp&url=$url"; 219 $string = "jsapi_ticket=$ticket&noncestr=$nonceStr&timestamp=$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,