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