WIN-2308041133\Administrator 5 місяців тому
батько
коміт
d9d868ecd5

+ 1 - 1
application/api/controller/Lave.php

@@ -169,7 +169,7 @@ class Lave extends Api
 //                ['help_id', 0],
                 ['plan_id', 0],
                 ['from', 'weixin'],
-                ['return_web', '1']
+                ['return_web', '']
             ], $request
         );
         @file_put_contents("quanju.txt", $where['from'] . "-来源\r\n", 8);

+ 4 - 2
extend/liuniu/WechatService.php

@@ -597,7 +597,7 @@ class WechatService
      * @param string $trade_type
      * @param array $options
      */
-    public static function signedOrder($contract_code, $plan_id, $cid = 0,$contract_display_account='',$nickname='',$return_web = '1')
+    public static function signedOrder($contract_code, $plan_id, $cid = 0,$contract_display_account='',$nickname='',$return_web = '')
     {
 //        $total_fee = bcmul($total_fee, 100, 0);
 //        $timestamp=time();
@@ -615,8 +615,10 @@ class WechatService
 // 使用动态时间戳
         $current_timestamp = time();
 //        $contract_code = preg_replace("/[^0-9]/", "", $contract_code);
-        if ($return_web != '1'){
+        if ($return_web != ''){
             $return_web ='http://red.igxys.com/'.$return_web;
+        }else{
+            $return_web = '1';
         }
         $params = [
 //            'appid' => 'wx5681205d1ef4d9d3',

+ 1 - 1
extend/liuniu/repositories/LaveRepository.php

@@ -88,7 +88,7 @@ class LaveRepository
      * @return array|string
      * @throws Exception
      */
-    public static function wxpaySign($cid, $orderId,$plan_record, $field = "order_id",$return_web ='1')
+    public static function wxpaySign($cid, $orderId,$plan_record, $field = "order_id",$return_web ='')
     {
 
         $openid = UserRelation::userIdToOpenId($plan_record['uid']);