기존에 deleteMemberDeviceByToken 삭제하고 deleteMemberDevice로 통일

This commit is contained in:
choyeon 2020-06-24 10:15:11 +09:00
parent 6c852e5f64
commit 8a9ea67523
3 changed files with 3 additions and 11 deletions

View file

@ -139,7 +139,7 @@ class memberController extends member
// Remove duplicated token key
$args = new stdClass;
$args->device_token = $device_token;
executeQuery('member.deleteMemberDeviceByToken', $args);
executeQuery('member.deleteMemberDevice', $args);
// Create member_device
$args = new stdClass;
@ -205,7 +205,7 @@ class memberController extends member
{
return new BaseObject(-1, 'LOGIN_FAILED');
}
$this->add('member_srl', $member_info->member_srl);
$this->add('user_id', $member_info->user_id);
$this->add('user_name', $member_info->user_name);

View file

@ -5,6 +5,6 @@
<conditions>
<condition operation="in" column="device_srl" var="device_srl" />
<condition operation="in" column="member_srl" var="member_srl" pipe="and" />
<condition operation="in" column="device_token" var="device_token" pipe="and" />
<condition operation="in" column="device_token" var="device_token" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -1,8 +0,0 @@
<query id="deleteMemberDeviceByToken" action="delete">
<tables>
<table name="member_devices" />
</tables>
<conditions>
<condition operation="equal" column="device_token" var="device_token" notnull="notnull" />
</conditions>
</query>