WIN-2308041133\Administrator 6 months ago
parent
commit
9445dfbd85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Lave.php

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

@@ -231,7 +231,7 @@ class Lave extends Api
             if ($count==0){
                 $num=WechatPlan::where('plan_id', $plan_id)->value('num');
                 @file_put_contents("quanju.txt", $num."-参与人数\r\n", 8);
-                WechatPlan::where('id', $plan_id)->update(['num' => $num+1]);
+                WechatPlan::where('plan_id', $plan_id)->update(['num' => $num+1]);
             }
             return $this->success('订单创建成功', $info);