Commit 18994a7b by 王昆

gsb

parent 530ee735
...@@ -61,7 +61,7 @@ class DeliverService extends ServiceBase { ...@@ -61,7 +61,7 @@ class DeliverService extends ServiceBase {
params.businessmenDivide = 0; params.businessmenDivide = 0;
var rs = await this.callms("common", "deliverSave", params); var rs = await this.callms("common", "deliverSave", params);
await this.doPercent([rs.data]); await this.doPercent([rs.data]);
if(!params.id && rs && rs.data && rs.data.id) { if(rs && rs.data && rs.data.id) {
this.synSave(rs.data.admin_id, params.password); this.synSave(rs.data.admin_id, params.password);
} }
return rs; return rs;
...@@ -74,6 +74,11 @@ class DeliverService extends ServiceBase { ...@@ -74,6 +74,11 @@ class DeliverService extends ServiceBase {
} }
let user = rs.data.user; let user = rs.data.user;
// 是否已经推送过
if(user.nt_user_id) {
return;
}
let deliver = rs.data.deliver; let deliver = rs.data.deliver;
let data = { let data = {
companyNo: deliver.id, companyNo: deliver.id,
......
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