update more..
This commit is contained in:
parent
ff4bf91612
commit
3238a7b3be
@ -147,6 +147,10 @@
|
|||||||
[欢迎反馈问题](https://github.com/chowa/ejyy/issues)
|
[欢迎反馈问题](https://github.com/chowa/ejyy/issues)
|
||||||
[欢迎提交代码](https://github.com/chowa/ejyy/pulls)
|
[欢迎提交代码](https://github.com/chowa/ejyy/pulls)
|
||||||
|
|
||||||
|
## 特别声明
|
||||||
|
|
||||||
|
禁止将本项目的代码和资源进行任何形式的出售,产生的一切后果由侵权者自负!!
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||

|

|
||||||
|
@ -1104,7 +1104,6 @@ CREATE TABLE `ejyy_wechat_mp_user` (
|
|||||||
`avatar_url` varchar(256) DEFAULT '/avatar/default.png',
|
`avatar_url` varchar(256) DEFAULT '/avatar/default.png',
|
||||||
`gender` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 男 2女 ',
|
`gender` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 男 2女 ',
|
||||||
`signature` varchar(56) NOT NULL DEFAULT '不一定每天都很好,但每天都会有些小美好在等你',
|
`signature` varchar(56) NOT NULL DEFAULT '不一定每天都很好,但每天都会有些小美好在等你',
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 正常 0冻结',
|
|
||||||
`intact` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 身份信息未补全; 1补全',
|
`intact` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 身份信息未补全; 1补全',
|
||||||
`created_at` bigint(13) NOT NULL
|
`created_at` bigint(13) NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Action } from '~/types/action';
|
import { Action } from '~/types/action';
|
||||||
import { SUCCESS, WEHCAT_MP_LOGIN_ERROR, ACCOUNT_HAS_BEEN_FREEZE } from '~/constant/code';
|
import { SUCCESS, WEHCAT_MP_LOGIN_ERROR } from '~/constant/code';
|
||||||
import { FREEZE_STATUS, INCOMPLETE_USER_INFO } from '~/constant/status';
|
import { INCOMPLETE_USER_INFO } from '~/constant/status';
|
||||||
import * as wechatService from '~/service/wechat';
|
import * as wechatService from '~/service/wechat';
|
||||||
import communityService from '~/service/community';
|
import communityService from '~/service/community';
|
||||||
import utils from '~/utils';
|
import utils from '~/utils';
|
||||||
@ -86,7 +86,6 @@ const MpUserLoginAction = <Action>{
|
|||||||
'ejyy_wechat_mp_user.gender',
|
'ejyy_wechat_mp_user.gender',
|
||||||
'ejyy_wechat_mp_user.avatar_url',
|
'ejyy_wechat_mp_user.avatar_url',
|
||||||
'ejyy_wechat_mp_user.signature',
|
'ejyy_wechat_mp_user.signature',
|
||||||
'ejyy_wechat_mp_user.status',
|
|
||||||
'ejyy_wechat_mp_user.intact',
|
'ejyy_wechat_mp_user.intact',
|
||||||
'ejyy_wechat_mp_user.created_at',
|
'ejyy_wechat_mp_user.created_at',
|
||||||
'ejyy_wechat_official_accounts_user.subscribed'
|
'ejyy_wechat_official_accounts_user.subscribed'
|
||||||
@ -117,13 +116,6 @@ const MpUserLoginAction = <Action>{
|
|||||||
token
|
token
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (mpUserInfo.status === FREEZE_STATUS) {
|
|
||||||
return (ctx.body = {
|
|
||||||
code: ACCOUNT_HAS_BEEN_FREEZE,
|
|
||||||
message: '账号已被冻结'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
mpUserInfo.phone = utils.phone.hide(mpUserInfo.phone);
|
mpUserInfo.phone = utils.phone.hide(mpUserInfo.phone);
|
||||||
|
|
||||||
await ctx.model
|
await ctx.model
|
||||||
|
@ -18,7 +18,6 @@ import * as MpModuleRouter from './router';
|
|||||||
import config from '~/config';
|
import config from '~/config';
|
||||||
import validatorService from '~/service/validator';
|
import validatorService from '~/service/validator';
|
||||||
import { PARAMS_ERROR, USER_INFO_UNINTACT } from '~/constant/code';
|
import { PARAMS_ERROR, USER_INFO_UNINTACT } from '~/constant/code';
|
||||||
import { FREEZE_STATUS } from '~/constant/status';
|
|
||||||
import cwlog from 'chowa-log';
|
import cwlog from 'chowa-log';
|
||||||
|
|
||||||
function MpModule(appRouter: KoaRouter) {
|
function MpModule(appRouter: KoaRouter) {
|
||||||
@ -51,14 +50,13 @@ function MpModule(appRouter: KoaRouter) {
|
|||||||
'ejyy_wechat_mp_user.gender',
|
'ejyy_wechat_mp_user.gender',
|
||||||
'ejyy_wechat_mp_user.avatar_url',
|
'ejyy_wechat_mp_user.avatar_url',
|
||||||
'ejyy_wechat_mp_user.signature',
|
'ejyy_wechat_mp_user.signature',
|
||||||
'ejyy_wechat_mp_user.status',
|
|
||||||
'ejyy_wechat_mp_user.intact',
|
'ejyy_wechat_mp_user.intact',
|
||||||
'ejyy_wechat_mp_user.created_at',
|
'ejyy_wechat_mp_user.created_at',
|
||||||
'ejyy_wechat_official_accounts_user.subscribed'
|
'ejyy_wechat_official_accounts_user.subscribed'
|
||||||
)
|
)
|
||||||
.first();
|
.first();
|
||||||
|
|
||||||
if (!ctx.mpUserInfo || ctx.mpUserInfo.status === FREEZE_STATUS) {
|
if (!ctx.mpUserInfo) {
|
||||||
return (ctx.status = 401);
|
return (ctx.status = 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,6 @@ const PcOwerDetailAction = <Action>{
|
|||||||
'ejyy_wechat_mp_user.avatar_url',
|
'ejyy_wechat_mp_user.avatar_url',
|
||||||
'ejyy_wechat_mp_user.signature',
|
'ejyy_wechat_mp_user.signature',
|
||||||
'ejyy_wechat_mp_user.gender',
|
'ejyy_wechat_mp_user.gender',
|
||||||
'ejyy_wechat_mp_user.status',
|
|
||||||
'ejyy_wechat_mp_user.intact',
|
'ejyy_wechat_mp_user.intact',
|
||||||
'ejyy_wechat_mp_user.created_at',
|
'ejyy_wechat_mp_user.created_at',
|
||||||
'ejyy_wechat_official_accounts_user.subscribed'
|
'ejyy_wechat_official_accounts_user.subscribed'
|
||||||
|
@ -97,7 +97,6 @@ const PcOwerListAction = <Action>{
|
|||||||
'ejyy_wechat_mp_user.real_name',
|
'ejyy_wechat_mp_user.real_name',
|
||||||
'ejyy_wechat_mp_user.nick_name',
|
'ejyy_wechat_mp_user.nick_name',
|
||||||
'ejyy_wechat_mp_user.gender',
|
'ejyy_wechat_mp_user.gender',
|
||||||
'ejyy_wechat_mp_user.status',
|
|
||||||
'ejyy_wechat_mp_user.intact',
|
'ejyy_wechat_mp_user.intact',
|
||||||
'ejyy_wechat_mp_user.created_at',
|
'ejyy_wechat_mp_user.created_at',
|
||||||
'ejyy_wechat_official_accounts_user.subscribed'
|
'ejyy_wechat_official_accounts_user.subscribed'
|
||||||
|
@ -64,16 +64,6 @@
|
|||||||
<span v-else>暂无上传</span>
|
<span v-else>暂无上传</span>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
<Col :lg="8" :sm="12" :xs="24">
|
|
||||||
<span class="detail-label">
|
|
||||||
账号状态
|
|
||||||
</span>
|
|
||||||
<div class="detail-content">
|
|
||||||
<Tag :color="detail.info.status ? 'success' : 'error'">
|
|
||||||
{{ detail.info.status ? '正常' : '冻结' }}
|
|
||||||
</Tag>
|
|
||||||
</div>
|
|
||||||
</Col>
|
|
||||||
<Col :lg="8" :sm="12" :xs="24">
|
<Col :lg="8" :sm="12" :xs="24">
|
||||||
<span class="detail-label">
|
<span class="detail-label">
|
||||||
是否关注公众号
|
是否关注公众号
|
||||||
|
@ -117,12 +117,6 @@ export default {
|
|||||||
p.row.intact ? '已完善' : '未完善'
|
p.row.intact ? '已完善' : '未完善'
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '账号状态',
|
|
||||||
minWidth: 80,
|
|
||||||
render: (h, p) =>
|
|
||||||
h(Tag, { props: { color: p.row.status ? 'success' : 'error' } }, p.row.status ? '正常' : '冻结')
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '关注公众号',
|
title: '关注公众号',
|
||||||
minWidth: 80,
|
minWidth: 80,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user