正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -210,14 +210,14 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -210,14 +210,14 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
210 | $ticketList = $this->getJsApiTicket($token['accessToken']); | 210 | $ticketList = $this->getJsApiTicket($token['accessToken']); |
211 | $ticket = $ticketList['ticket']; | 211 | $ticket = $ticketList['ticket']; |
212 | // 该URL为使用JSSDK接口的URL | 212 | // 该URL为使用JSSDK接口的URL |
213 | - $url = 'http://xkeasy.w.bronet.cn/'; | 213 | + $url = 'http://xkeasy.w.bronet.cn/Salesmangoods/salesman_goods_add'; |
214 | // 时间戳 | 214 | // 时间戳 |
215 | $timestamp = time(); | 215 | $timestamp = time(); |
216 | // 随机字符串 | 216 | // 随机字符串 |
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 = base64_encode($string); | 220 | + $signature = sha1($string); |
221 | $signPackage = array ( | 221 | $signPackage = array ( |
222 | "appId" => "wxdf34ec2179e19b9a", | 222 | "appId" => "wxdf34ec2179e19b9a", |
223 | "nonceStr" => $nonceStr, | 223 | "nonceStr" => $nonceStr, |
-
请 注册 或 登录 后发表评论