Merge branch 'feature/mark_repeat_user' of wmtx/platform into release

用户重复标识-注册事件通知
master
廖金灵 5 years ago committed by Gogs
commit 4ee8b21cd5

@ -55,4 +55,9 @@ class TaskClient
{
return $this->post('/message/sms-check', ['mobile' => $mobile, 'code' => $code]);
}
public function registerEvent($userId, $source)
{
return $this->post('/game-event/register', ['user_id' => $userId, 'source' => $source]);
}
}

@ -232,6 +232,10 @@ class CommonController extends BaseController {
/* 添加用户 */
$res = M('user', 'tab_') ->add($data);
if ($res) {
$taskClient = new TaskClient();
$taskClient->registerEvent($res, 'TestFlight');
}
return $res;
}

@ -300,6 +300,10 @@ class SsgController extends BaseController {
}
/* 添加用户 */
$res = M('user', 'tab_') ->add($data);
if ($res) {
$taskClient = new TaskClient();
$taskClient->registerEvent($res, 'SSG');
}
return $res;
# code...
}

@ -414,6 +414,8 @@ class UserController extends BaseController
$pid = $this->suser->register($phone, $password, $phone, $register_way, $register_type, '', '', $sex, $nickname, $head_img);
}
if ($pid > 0) {
$taskClient = new TaskClient();
$taskClient->registerEvent($pid, 'WAP');
if (empty($safeinfo['promote_id'])) {
$data = array(
'status' => 1,
@ -545,6 +547,10 @@ class UserController extends BaseController
$pid = $this->suser->register($account, $password, '', $register_way, $register_type, '', '', $sex, $nickname, $head_img);
if ($pid > 0) {
$taskClient = new TaskClient();
$taskClient->registerEvent($pid, 'WAP');
$promoteId = I('post.promote_id');
$promoteId = intval($promoteId);

@ -1451,4 +1451,10 @@ ALTER TABLE `tab_spend`
ADD INDEX `game_time`(`game_id`,`pay_time`) USING BTREE;
-- 为公会统计新增spend索引 chenzhi 2020/03/11
ALTER TABLE `tab_spend`
ADD INDEX `promote_time`(`promote_id`,`pay_time`) USING BTREE;
ADD INDEX `promote_time`(`promote_id`,`pay_time`) USING BTREE;
-- liaojinling 用户重复标识
ALTER TABLE `tab_user`
ADD INDEX `index_device_ip` (`device_number`, `last_login_ip`) USING BTREE ;
ALTER TABLE `tab_user`
ADD COLUMN `is_repeat` tinyint(1) not null default 0 comment '是否重复用户[设备/IP]';
Loading…
Cancel
Save