Commit 490c6e8e by 庄冰

policy pushs

parent 06af36b0
......@@ -293,7 +293,8 @@ class PolicyneedService extends ServiceBase {
});
for(var i=0;i<pns.length;i++){
var pn = pns[i];
var needNo=await this.getBusUid("pn");
// var needNo=await this.getBusUid("pn");
var needNo = "PN"+pn.id+"_"+pn.mobile+pn.uapp_id;
var pobj = {
"idempotentId": needNo,
"idempotentSource": "policyMpm",
......
......@@ -122,7 +122,7 @@ class PolicysubscribeService extends ServiceBase {
var currentPage = obj.currentPage || 1;
var pageSize = obj.pageSize || 100 ;
var ps = await this.dao.model.findOne({
where:{id:obj.policySubscribeId,openid:obj.openid},
where:{id:obj.policySubscribeId},
raw:true
});
if(!ps || !ps.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