...
|
...
|
@@ -452,6 +452,11 @@ class User extends Api |
|
|
$validate->rule($rule);
|
|
|
$validate->message($msg);
|
|
|
if (!$validate->check($data)) $this->error($validate->getError());
|
|
|
|
|
|
// 禁止连点
|
|
|
!empty(cache('joinus_'.$username)) && $this->error('操作频繁,请稍后再试');
|
|
|
cache('joinus_'.$username,'123',5);
|
|
|
|
|
|
$data['createtime'] = time();
|
|
|
Db::name('join_us')->insert($data);
|
|
|
$this->success('SUCCESS');
|
...
|
...
|
|