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

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

@@ -177,7 +177,13 @@ class Lave extends Api
 //        if (empty($contract_display_account)){
 //            $this->error('用户不存在!');
 //        }
-
+        if ($where['amount']>500){
+            $this->error('捐款金额不能大于500');
+        }
+        $sign=WechatPlanRecord::where('uid', $where1['user_id'])->where('plan_id', $where1['plan_id'])->where('is_signing',0)->find();
+        if (!empty($sign)){
+            $this->error('您已签约,请勿重复签约!');
+        }
         if (cache('lave_' . $where['user_id'])) $this->error('正在处理中');
         $plan_id=$where1['plan_id'];
 //        unset($where1['plan_id']);