...
|
...
|
@@ -217,7 +217,7 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$nonceStr = $this->createNoncestr();
|
|
|
// 这里参数的顺序要按照 key 值 ASCII 码升序排序 j -> n -> t -> u
|
|
|
$string = "jsapi_ticket=$ticket&noncestr=$nonceStr×tamp=$timestamp&url=$url";
|
|
|
$signature = sha1($string);
|
|
|
$signature = base64_encode($string);
|
|
|
$signPackage = array (
|
|
|
"appId" => "wxdf34ec2179e19b9a",
|
|
|
"nonceStr" => $nonceStr,
|
...
|
...
|
|