hefei 1 год назад
Родитель
Сommit
8e1b2848f6
1 измененных файлов с 2 добавлено и 11 удалено
  1. 2 11
      app/controller/api/store/product/StoreProduct.php

+ 2 - 11
app/controller/api/store/product/StoreProduct.php

@@ -327,23 +327,14 @@ class StoreProduct extends BaseController
327
         $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" . $access_token;
327
         $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" . $access_token;
328
 //        $data['scene'] = 'spread=' . $uid . '&goods_id=' . $pid;
328
 //        $data['scene'] = 'spread=' . $uid . '&goods_id=' . $pid;
329
         $data['scene'] = 'id=' . $pid . '&shareID=' . $share_id;
329
         $data['scene'] = 'id=' . $pid . '&shareID=' . $share_id;
330
-        $data['page'] = 'pages/store/product/detail';
330
+        $data['page'] = 'subPages/pages/store/product/detail';
331
 
331
 
332
         $domain = $this->request->domain();
332
         $domain = $this->request->domain();
333
-        if(strpos($domain, 'test.hebeiyhc.com') !== false) {
333
+        if(strpos($domain, 'testapi.hxxfb.com') !== false) {
334
             // 域名中包含 "test.hebeiyhc.com'" 字符串
334
             // 域名中包含 "test.hebeiyhc.com'" 字符串
335
             $data['env_version'] = 'trial';
335
             $data['env_version'] = 'trial';
336
         }
336
         }
337
         $res = $user->posturl($url, $data);
337
         $res = $user->posturl($url, $data);
338
-        if(isset(json_decode($res,true)['errcode']) && json_decode($res,true)['errcode']=='40001'){
339
-            Cache::delete('wx9082e5ac2fdb513f1_mp_access_token');
340
-            $access_token = $this->get_mp_access_token();
341
-            $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" . $access_token;
342
-            $data['scene'] = 'id=' . $pid . '&shareID=' . $share_id;
343
-            $data['page'] = 'pages/store/product/detail';
344
-            $res = $user->posturl($url, $data);
345
-        }
346
-
347
         //判断是否是 json格式
338
         //判断是否是 json格式
348
         if (is_null(json_decode($res))) {
339
         if (is_null(json_decode($res))) {
349
             $new_file = (int)(microtime(true) * 1000);
340
             $new_file = (int)(microtime(true) * 1000);