正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
@@ -114,6 +114,13 @@ class Client extends Base | @@ -114,6 +114,13 @@ class Client extends Base | ||
114 | $industry=$this->postParam['industry']; | 114 | $industry=$this->postParam['industry']; |
115 | $address=$this->postParam['address']; | 115 | $address=$this->postParam['address']; |
116 | $verification_activity_id=$this->postParam['id']; | 116 | $verification_activity_id=$this->postParam['id']; |
117 | + //半个小时提交一次 | ||
118 | + $time=time(); | ||
119 | + $res=Db::name('verification_hold_activity')->where(["user_id"=>$this->auth->id])->order('id','desc')->find(); | ||
120 | + $newtime=$time-1800; | ||
121 | + if($res['createtime']<$newtime){ | ||
122 | + $this->error("请勿重复提交"); | ||
123 | + } | ||
117 | $data=[ | 124 | $data=[ |
118 | 'verification_store_id'=>$verification_store_id, | 125 | 'verification_store_id'=>$verification_store_id, |
119 | 'name'=>$name, | 126 | 'name'=>$name, |
@@ -121,7 +128,8 @@ class Client extends Base | @@ -121,7 +128,8 @@ class Client extends Base | ||
121 | 'industry'=>$industry, | 128 | 'industry'=>$industry, |
122 | 'address'=>$address, | 129 | 'address'=>$address, |
123 | 'verification_activity_id'=>$verification_activity_id, | 130 | 'verification_activity_id'=>$verification_activity_id, |
124 | - 'user_id'=>$this->auth->id | 131 | + 'user_id'=>$this->auth->id, |
132 | + 'createtime'=>$time | ||
125 | ]; | 133 | ]; |
126 | $res=Db::name('verification_hold_activity')->insertGetId($data); | 134 | $res=Db::name('verification_hold_activity')->insertGetId($data); |
127 | if($res){ | 135 | if($res){ |
-
请 注册 或 登录 后发表评论