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

4

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