作者 郭文星

'123'

... ... @@ -114,6 +114,13 @@ class Client extends Base
$industry=$this->postParam['industry'];
$address=$this->postParam['address'];
$verification_activity_id=$this->postParam['id'];
//半个小时提交一次
$time=time();
$res=Db::name('verification_hold_activity')->where(["user_id"=>$this->auth->id])->order('id','desc')->find();
$newtime=$time-1800;
if($res['createtime']<$newtime){
$this->error("请勿重复提交");
}
$data=[
'verification_store_id'=>$verification_store_id,
'name'=>$name,
... ... @@ -121,7 +128,8 @@ class Client extends Base
'industry'=>$industry,
'address'=>$address,
'verification_activity_id'=>$verification_activity_id,
'user_id'=>$this->auth->id
'user_id'=>$this->auth->id,
'createtime'=>$time
];
$res=Db::name('verification_hold_activity')->insertGetId($data);
if($res){
... ...