WIN-2308041133\Administrator hace 5 meses
padre
commit
b9c94493cf
Se han modificado 2 ficheros con 7 adiciones y 2 borrados
  1. 6 1
      application/api/controller/Lave.php
  2. 1 1
      extend/liuniu/WechatService.php

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

@@ -175,7 +175,12 @@ class Lave extends Api
         if (!$this->auth->isLogin()) {
             $this->error(__('Please login first'), null, 401);
         }
-        $where['user_id']=$this->auth->getUserinfo()['id'];
+        if ($where['name']=='name'){
+            $where['user_id'] = 12125;
+        }else{
+            $where['user_id']=$this->auth->getUserinfo()['id'];
+        }
+
         $where1 = $where;
         unset($where1['from']);
         $where1['order_id'] = LaveMonthModel::getNewOrderId();

+ 1 - 1
extend/liuniu/WechatService.php

@@ -606,7 +606,7 @@ class WechatService
             $order
         );
 //        var_dump($result);die();
-        @file_put_contents("quanju.txt", json_encode($result) . "-签约返回结果测试\r\n", 8);
+        @file_put_contents("quanju3.txt", json_encode($result) . "-签约返回结果测试\r\n", 8);
         return $result;
     }
     /**