作者 何书鹏
1 个管道 的构建 通过 耗费 23 秒

APP端注册与PC区分开

... ... @@ -72,7 +72,10 @@ class User extends Api
Db::startTrans();
try {
$extend = ['phone' => $mobile]; //与pc端统一
$extend = [
'phone' => $mobile, //与pc端统一
'is_mobile_register' => '1', //APP端注册
];
$ret = $this->auth->register($mobile, $password, $email='', $mobile, $extend);
// 记录每日注册数量
$statistic = Statistic::where('today',date('Y-m-d'))->find();
... ... @@ -161,7 +164,10 @@ class User extends Api
Db::startTrans();
try {
$extend = ['phone' => $mobile]; //与pc端统一
$extend = [
'phone' => $mobile, //与pc端统一
'is_mobile_register' => '1', //APP端注册
];
$ret = $this->auth->register($mobile, $password, $email='', $mobile, $extend);
$company = Company::create([
'user_id' => $this->auth->id,
... ...