|
@@ -13,6 +13,8 @@ const crypto = require('crypto');
|
|
const SSO = require('../lib/sso');
|
|
const SSO = require('../lib/sso');
|
|
const SMS = require('../lib/sms');
|
|
const SMS = require('../lib/sms');
|
|
const SmsAliConst = require('../const/sms_alitemplate');
|
|
const SmsAliConst = require('../const/sms_alitemplate');
|
|
|
|
+const thirdPartyConst = require('../const/third_party');
|
|
|
|
+
|
|
module.exports = app => {
|
|
module.exports = app => {
|
|
|
|
|
|
class ProjectAccount extends app.BaseService {
|
|
class ProjectAccount extends app.BaseService {
|
|
@@ -228,8 +230,15 @@ module.exports = app => {
|
|
|
|
|
|
const thirdParty = await this.db.get('zh_s2b_proj', { pid: projectInfo.id });
|
|
const thirdParty = await this.db.get('zh_s2b_proj', { pid: projectInfo.id });
|
|
if (thirdParty) {
|
|
if (thirdParty) {
|
|
|
|
+ thirdParty.gxby_option = thirdParty.gxby_option ? JSON.parse(thirdParty.gxby_option) : null;
|
|
projectInfo.gxby = thirdParty.gxby;
|
|
projectInfo.gxby = thirdParty.gxby;
|
|
|
|
+ projectInfo.gxby_status = thirdParty.gxby_option && thirdParty.gxby_option.status
|
|
|
|
+ ? thirdParty.gxby_option.status : thirdPartyConst.gxby;
|
|
|
|
+
|
|
|
|
+ thirdParty.dagl_option = thirdParty.dagl_option ? JSON.parse(thirdParty.dagl_option): null;
|
|
projectInfo.dagl = thirdParty.dagl;
|
|
projectInfo.dagl = thirdParty.dagl;
|
|
|
|
+ projectInfo.dagl_status = thirdParty.dagl_option && thirdParty.dagl_option.status
|
|
|
|
+ ? thirdParty.dagl_option.status : thirdPartyConst.dagl;
|
|
}
|
|
}
|
|
this.ctx.session.sessionProject = projectInfo;
|
|
this.ctx.session.sessionProject = projectInfo;
|
|
this.ctx.session.sessionProjectList = projectList;
|
|
this.ctx.session.sessionProjectList = projectList;
|