...
|
...
|
@@ -210,14 +210,14 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$ticketList = $this->getJsApiTicket($token['accessToken']);
|
|
|
$ticket = $ticketList['ticket'];
|
|
|
// 该URL为使用JSSDK接口的URL
|
|
|
$url = 'http://xkeasy.w.bronet.cn/';
|
|
|
$url = 'http://xkeasy.w.bronet.cn/Salesmangoods/salesman_goods_add';
|
|
|
// 时间戳
|
|
|
$timestamp = time();
|
|
|
// 随机字符串
|
|
|
$nonceStr = $this->createNoncestr();
|
|
|
// 这里参数的顺序要按照 key 值 ASCII 码升序排序 j -> n -> t -> u
|
|
|
$string = "jsapi_ticket=$ticket&noncestr=$nonceStr×tamp=$timestamp&url=$url";
|
|
|
$signature = base64_encode($string);
|
|
|
$signature = sha1($string);
|
|
|
$signPackage = array (
|
|
|
"appId" => "wxdf34ec2179e19b9a",
|
|
|
"nonceStr" => $nonceStr,
|
...
|
...
|
|