member_devices 스키마 수정,

ProcMemberLogingWithDevice 에서도 유저 정보 반환,
getDeviceTokens()에서 쿼리할 때 device_type 조건 추가
This commit is contained in:
choyeon 2020-06-22 10:29:40 +09:00
parent f9521d4d93
commit 93f1d15a48
3 changed files with 10 additions and 3 deletions

View file

@ -209,6 +209,12 @@ class memberController extends member
{
return new BaseObject(-1, 'LOGIN_FAILED');
}
$logged_info = Context::get('logged_info');
$this->add('member_srl', $logged_info->member_srl);
$this->add('user_id', $logged_info->user_id);
$this->add('user_name', $logged_info->user_name);
$this->add('nick_name', $logged_info->nick_name);
}
/**

View file

@ -8,5 +8,6 @@
</columns>
<conditions>
<condition operation="in" column="member_srl" var="member_srl" notnull="notnull" />
<condition operation="in" column="device_type" var="device_type" notnull="notnull" />
</conditions>
</query>

View file

@ -1,12 +1,12 @@
<table name="member_devices">
<column name="device_srl" type="number" notnull="notnull" primary_key="primary_key" />
<column name="member_srl" type="number" notnull="notnull" index="idx_member_srl" />
<column name="device_token" type="varchar" size="200" notnull="notnull" />
<column name="device_token" type="varchar" size="200" notnull="notnull" index="idx_device_token" />
<column name="device_key" type="char" size="64" notnull="notnull" />
<column name="device_type" type="date" notnull="notnull" index="idx_device_type" />
<column name="device_type" type="char" size="1" notnull="notnull" index="idx_device_type" />
<column name="device_version" type="varchar" size="20" notnull="notnull" />
<column name="device_model" type="varchar" size="40" notnull="notnull" />
<column name="device_description" type="varchar" size="200" />
<column name="regdate" type="varchar" size="14" notnull="notnull" index="idx_regdate" />
<column name="regdate" type="date" notnull="notnull" index="idx_regdate" />
<column name="ipaddress" type="varchar" size="120" notnull="notnull" />
</table>