作者 wangzhi

后台修改

... ... @@ -99,6 +99,7 @@ class User extends Backend
if (!\think\Validate::regex($params['phone'], "^1[3,5,6,7,8,9]\d{9}$")) {
$this->error(__('手机号不正确'));
}
if (empty(Db::name('qrcode')->where('key', $params['top_code'])->find())) $this->error('不存在的邀请码!');
$Api = new Api();
$Info = $Api->CreateQrCode(2, $params['top_code']);
$params['code'] = $Info['code'];
... ...