Commit f01d3a3f by zhaoxiqing

gsb

parent 20423f4e
...@@ -7,6 +7,7 @@ class MerchantService extends ServiceBase { ...@@ -7,6 +7,7 @@ class MerchantService extends ServiceBase {
super("merchant", ServiceBase.getDaoName(MerchantService)); super("merchant", ServiceBase.getDaoName(MerchantService));
this.redisClient = system.getObject("util.redisClient"); this.redisClient = system.getObject("util.redisClient");
this.merchantapiSve = system.getObject("service.merchant.merchantapiSve"); this.merchantapiSve = system.getObject("service.merchant.merchantapiSve");
this.merchantaccountDao = system.getObject("db.merchant.merchantaccountDao")
} }
async addModifyMerchants(params) { async addModifyMerchants(params) {
...@@ -149,7 +150,9 @@ class MerchantService extends ServiceBase { ...@@ -149,7 +150,9 @@ class MerchantService extends ServiceBase {
} }
var rtn = await this.dao.update(params); var rtn = await this.dao.update(params);
if(params.audit_status == 1){
this.merchantaccountDao.create({merchant_id:params.id,balance_amount:0,available_amount:0})
}
return system.getResultSuccess(rtn); return system.getResultSuccess(rtn);
} catch (e) { } catch (e) {
console.log(e); console.log(e);
......
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