Commit ba1c5de8 by zhaoxiqing

gsb

parent 237f96f9
...@@ -91,7 +91,6 @@ class EcontractApi { ...@@ -91,7 +91,6 @@ class EcontractApi {
console.log(e); console.log(e);
} }
} }
console.log(ids)
this.addqrcodeurl({ids: ids}); this.addqrcodeurl({ids: ids});
return errors; return errors;
} }
......
...@@ -87,5 +87,19 @@ class TestApi { ...@@ -87,5 +87,19 @@ class TestApi {
} }
} }
} }
async sssss(obj){
if(obj.ss in {"12":"","13":""}) {
console.log("ok")
}else {
console.log("no")
}
}
} }
module.exports = TestApi; module.exports = TestApi;
\ No newline at end of file
...@@ -9,6 +9,8 @@ module.exports = (db, DataTypes) => { ...@@ -9,6 +9,8 @@ module.exports = (db, DataTypes) => {
appid :DataTypes.STRING, appid :DataTypes.STRING,
mcthid : DataTypes.STRING, mcthid : DataTypes.STRING,
key : DataTypes.STRING, key : DataTypes.STRING,
merchantApi : DataTypes.STRING,
mainId : DataTypes.STRING,
},{ },{
paranoid: true,//假的删除 paranoid: true,//假的删除
underscored: true, underscored: true,
......
...@@ -474,7 +474,7 @@ class EntcontractService extends ServiceBase { ...@@ -474,7 +474,7 @@ class EntcontractService extends ServiceBase {
type: "0",// 类型 0 一般纳税人 1 小规模纳税人 type: "0",// 类型 0 一般纳税人 1 小规模纳税人
companyName: params.merchantName,//商户名称 companyName: params.merchantName,//商户名称
mobile: params.mobile,//手机号 mobile: params.mobile,//手机号
mainId: settings.apiconfig.getmainId(),//代征主体 67731101 测试 67731504 mainId:enttemplate.mainId,//代征主体 67731101 测试 67731504
signedName: params.merchantName, //合同名称 使用商户名称 signedName: params.merchantName, //合同名称 使用商户名称
beginTime: moment().format("YYYY-MM-DD"), //当前时间, // 签约开始时间 beginTime: moment().format("YYYY-MM-DD"), //当前时间, // 签约开始时间
invalidTime: moment().add(2, 'y').format("YYYY-MM-DD"), // 签约失效时间 invalidTime: moment().add(2, 'y').format("YYYY-MM-DD"), // 签约失效时间
...@@ -539,7 +539,7 @@ class EntcontractService extends ServiceBase { ...@@ -539,7 +539,7 @@ class EntcontractService extends ServiceBase {
erchants: erchants erchants: erchants
} }
} }
let url = settings.apiconfig.settleApiConfig().createMerchantApi; let url =enttemplate.merchantApi;
console.log("有赞商户创建url:", url); console.log("有赞商户创建url:", url);
let rs = await axios({ let rs = await axios({
method: 'post', method: 'post',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment