WIN-2308041133\Administrator 1 month ago
parent
commit
538cbcd3a5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      application/api/controller/Lave.php

+ 4 - 0
application/api/controller/Lave.php

@@ -178,6 +178,7 @@ class Lave extends Api
 //        if (empty($contract_display_account)){
 //            $this->error('用户不存在!');
 //        }
+        @file_put_contents("quanju.txt","-测试1\r\n", 8);
         if ($where['amount']>500){
             $this->error('捐款金额不能大于500');
         }
@@ -185,14 +186,17 @@ class Lave extends Api
         if (!empty($sign)){
             $this->error('您已签约,请勿重复签约!');
         }
+        @file_put_contents("quanju.txt","-测试2\r\n", 8);
         if (cache('lave_' . $where['user_id'])) $this->error('正在处理中');
         $plan_id=$where1['plan_id'];
 //        unset($where1['plan_id']);
         $where1['contract_code'] = WechatPlanRecord::getNewCode();
         $order = LaveMonthModel::create($where1);
+        @file_put_contents("quanju.txt","-测试3\r\n", 8);
         $where1['contract_display_account']=$where1['name'];
         cache('lave_' . $where['user_id'], '1', 10);
         if (!$order) $this->error(LaveMonthModel::getErrorInfo());
+        @file_put_contents("quanju.txt","-测试4\r\n", 8);
         $orderId = $order['order_id'];
         $info = compact('orderId');
         $order['plan_id'] = $plan_id;