|
@@ -199,7 +199,7 @@ module.exports = app => {
|
|
|
*/
|
|
|
verifyManagementProject(token) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- this.ctx.curl(`${app.config.env === 'local' ? 'http://pmqa.smartcost.com.cn' : 'http://pm.6jlzf.cn'}/api/external/jl/calibration`, {
|
|
|
+ this.ctx.curl(`${app.config.env === 'prod' ? 'http://pm.6jlzf.cn' : 'http://pmqa.smartcost.com.cn'}/api/external/jl/calibration`, {
|
|
|
method: 'POST',
|
|
|
// dateType: 'json',
|
|
|
encoding: 'utf8',
|
|
@@ -227,7 +227,7 @@ module.exports = app => {
|
|
|
async addProjectFromManagement() {
|
|
|
const token = this.ctx.helper.createJWT({ account: this.ctx.session.sessionUser.account, code: this.ctx.session.sessionProject.code });
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- this.ctx.curl(`${app.config.env === 'local' ? 'http://pmqa.smartcost.com.cn' : 'http://pm.6jlzf.cn'}/api/external/jl/project/add`, {
|
|
|
+ this.ctx.curl(`${app.config.env === 'prod' ? 'http://pm.6jlzf.cn' : 'http://pmqa.smartcost.com.cn'}/api/external/jl/project/add`, {
|
|
|
method: 'POST',
|
|
|
encoding: 'utf8',
|
|
|
data: { token },
|