mirror of
https://github.com/chowa/ejyy.git
synced 2026-01-21 05:07:48 +08:00
update more..
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
*/
|
||||
|
||||
import { Action } from '~/types/action';
|
||||
import { SUCCESS, WEHCAT_MP_LOGIN_ERROR, ACCOUNT_HAS_BEEN_FREEZE } from '~/constant/code';
|
||||
import { FREEZE_STATUS, INCOMPLETE_USER_INFO } from '~/constant/status';
|
||||
import { SUCCESS, WEHCAT_MP_LOGIN_ERROR } from '~/constant/code';
|
||||
import { INCOMPLETE_USER_INFO } from '~/constant/status';
|
||||
import * as wechatService from '~/service/wechat';
|
||||
import communityService from '~/service/community';
|
||||
import utils from '~/utils';
|
||||
@@ -86,7 +86,6 @@ const MpUserLoginAction = <Action>{
|
||||
'ejyy_wechat_mp_user.gender',
|
||||
'ejyy_wechat_mp_user.avatar_url',
|
||||
'ejyy_wechat_mp_user.signature',
|
||||
'ejyy_wechat_mp_user.status',
|
||||
'ejyy_wechat_mp_user.intact',
|
||||
'ejyy_wechat_mp_user.created_at',
|
||||
'ejyy_wechat_official_accounts_user.subscribed'
|
||||
@@ -117,13 +116,6 @@ const MpUserLoginAction = <Action>{
|
||||
token
|
||||
});
|
||||
} else {
|
||||
if (mpUserInfo.status === FREEZE_STATUS) {
|
||||
return (ctx.body = {
|
||||
code: ACCOUNT_HAS_BEEN_FREEZE,
|
||||
message: '账号已被冻结'
|
||||
});
|
||||
}
|
||||
|
||||
mpUserInfo.phone = utils.phone.hide(mpUserInfo.phone);
|
||||
|
||||
await ctx.model
|
||||
|
||||
@@ -18,7 +18,6 @@ import * as MpModuleRouter from './router';
|
||||
import config from '~/config';
|
||||
import validatorService from '~/service/validator';
|
||||
import { PARAMS_ERROR, USER_INFO_UNINTACT } from '~/constant/code';
|
||||
import { FREEZE_STATUS } from '~/constant/status';
|
||||
import cwlog from 'chowa-log';
|
||||
|
||||
function MpModule(appRouter: KoaRouter) {
|
||||
@@ -51,14 +50,13 @@ function MpModule(appRouter: KoaRouter) {
|
||||
'ejyy_wechat_mp_user.gender',
|
||||
'ejyy_wechat_mp_user.avatar_url',
|
||||
'ejyy_wechat_mp_user.signature',
|
||||
'ejyy_wechat_mp_user.status',
|
||||
'ejyy_wechat_mp_user.intact',
|
||||
'ejyy_wechat_mp_user.created_at',
|
||||
'ejyy_wechat_official_accounts_user.subscribed'
|
||||
)
|
||||
.first();
|
||||
|
||||
if (!ctx.mpUserInfo || ctx.mpUserInfo.status === FREEZE_STATUS) {
|
||||
if (!ctx.mpUserInfo) {
|
||||
return (ctx.status = 401);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ const PcOwerDetailAction = <Action>{
|
||||
'ejyy_wechat_mp_user.avatar_url',
|
||||
'ejyy_wechat_mp_user.signature',
|
||||
'ejyy_wechat_mp_user.gender',
|
||||
'ejyy_wechat_mp_user.status',
|
||||
'ejyy_wechat_mp_user.intact',
|
||||
'ejyy_wechat_mp_user.created_at',
|
||||
'ejyy_wechat_official_accounts_user.subscribed'
|
||||
|
||||
@@ -97,7 +97,6 @@ const PcOwerListAction = <Action>{
|
||||
'ejyy_wechat_mp_user.real_name',
|
||||
'ejyy_wechat_mp_user.nick_name',
|
||||
'ejyy_wechat_mp_user.gender',
|
||||
'ejyy_wechat_mp_user.status',
|
||||
'ejyy_wechat_mp_user.intact',
|
||||
'ejyy_wechat_mp_user.created_at',
|
||||
'ejyy_wechat_official_accounts_user.subscribed'
|
||||
|
||||
Reference in New Issue
Block a user