作者 王智

修改

... ... @@ -95,6 +95,9 @@ class Index extends Api
{
$UserId = $this->IsToken($this->request->header());
$params = $this->request->param();
if(!empty(Db::name('stor')->where('name', $params['name'])->find()))$this->error('重复的店铺名称');
if(!empty(Db::name('stor')->where('mobile', $params['mobile'])->find()))$this->error('重复的手机号码');
if ($params['type'] == 1) {
$data = [
'user_id' => $UserId,
... ...