|
@@ -235,6 +235,13 @@ class Auth
|
|
}
|
|
}
|
|
$userpower = UserPower::getByUserId($user->id);
|
|
$userpower = UserPower::getByUserId($user->id);
|
|
$this->_user->power = $userpower;
|
|
$this->_user->power = $userpower;
|
|
|
|
+ //注册到钱包
|
|
|
|
+ $wallet_data = [
|
|
|
|
+ 'user_id' => $user->id,
|
|
|
|
+ 'money' => 0,
|
|
|
|
+ 'jewel' => 0,
|
|
|
|
+ ];
|
|
|
|
+ Db::name('user_wallet')->insertGetId($wallet_data);
|
|
//注册成功的事件
|
|
//注册成功的事件
|
|
Hook::listen("user_register_successed", $this->_user, $data);
|
|
Hook::listen("user_register_successed", $this->_user, $data);
|
|
\app\common\model\NewBagHave::insert(["user_id" => $user->id, "createtime" => time()]);
|
|
\app\common\model\NewBagHave::insert(["user_id" => $user->id, "createtime" => time()]);
|
|
@@ -864,6 +871,13 @@ class Auth
|
|
$powerData = ['user_id' => $user->id];
|
|
$powerData = ['user_id' => $user->id];
|
|
Db::name('user_power')->insertGetId($powerData);
|
|
Db::name('user_power')->insertGetId($powerData);
|
|
}
|
|
}
|
|
|
|
+ //注册到钱包
|
|
|
|
+ $wallet_data = [
|
|
|
|
+ 'user_id' => $user->id,
|
|
|
|
+ 'money' => 0,
|
|
|
|
+ 'jewel' => 0,
|
|
|
|
+ ];
|
|
|
|
+ Db::name('user_wallet')->insertGetId($wallet_data);
|
|
//注册成功的事件
|
|
//注册成功的事件
|
|
Hook::listen("user_register_successed", $this->_user, $data);
|
|
Hook::listen("user_register_successed", $this->_user, $data);
|
|
\app\common\model\NewBagHave::insert(["user_id" => $user->id, "createtime" => time()]);
|
|
\app\common\model\NewBagHave::insert(["user_id" => $user->id, "createtime" => time()]);
|