...
|
...
|
@@ -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,
|
...
|
...
|
|