WIN-2308041133\Administrator 5 месяцев назад
Родитель
Сommit
53937df6e5
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      extend/liuniu/WechatService.php

+ 4 - 1
extend/liuniu/WechatService.php

@@ -615,6 +615,9 @@ class WechatService
 // 使用动态时间戳
         $current_timestamp = time();
 //        $contract_code = preg_replace("/[^0-9]/", "", $contract_code);
+        if ($return_web != '1'){
+            $return_web ='http://red.igxys.com/'.$return_web;
+        }
         $params = [
 //            'appid' => 'wx5681205d1ef4d9d3',
             'appid' => $app_id,
@@ -626,7 +629,7 @@ class WechatService
             'notify_url' => 'http://red.igxys.com/api/wechat/notify/'.$cid,
             'timestamp' => $current_timestamp, // 动态时间戳
             'version' => '1.0',
-            'return_web' => 'http://red.igxys.com/'.$return_web
+            'return_web' => $return_web
         ];
 
 // 关键步骤1:先对需要编码的参数进行原始值存储