|
@@ -177,7 +177,13 @@ class Lave extends Api
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+ 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'];
|
|
|
|