|
@@ -235,7 +235,7 @@ func TimerSwordFishFromUser() {
|
|
|
//提示
|
|
|
for _, v := range swordfish_tipBeforeDays {
|
|
|
if v == sub64 {
|
|
|
- creditrpc.SendMsgWebAndWx(swordfish_dueTitle+"["+creditrpc.Message["txt_"+code]+"]", fmt.Sprintf(swordfish_due, v), util.BsonIdToSId(tmp["_id"]), tmp["s_m_openid"].(string))
|
|
|
+ creditrpc.SendMsgWebAndWx(fmt.Sprintf(swordfish_dueTitle, creditrpc.Message["txt_"+code]), fmt.Sprintf(swordfish_due, creditrpc.Message["txt_"+code], v, tmp["i_credit"]), util.BsonIdToSId(tmp["_id"]), tmp["s_m_openid"].(string))
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -283,7 +283,7 @@ func doSubCreditByUser(userId, umid, typeName, code string, next *time.Time, use
|
|
|
}
|
|
|
if creditlog.Save(creditDoc) {
|
|
|
//发送微信通知扣积分成功
|
|
|
- creditrpc.SendMsgWebAndWx(swordfish_payTitle+"["+creditrpc.Message["txt_"+code]+"]", fmt.Sprintf(swordfish_pay, -codeNum, restNum, util.FormatDate(&newDate, util.Date_Full_Layout)), userId, umid)
|
|
|
+ creditrpc.SendMsgWebAndWx(fmt.Sprintf(swordfish_payTitle, creditrpc.Message["txt_"+code]), fmt.Sprintf(swordfish_pay, creditrpc.Message["txt_"+code], -codeNum, restNum, util.FormatDate(&newDate, util.Date_Full_Layout)), userId, umid)
|
|
|
}
|
|
|
} else { //暂停操作
|
|
|
//更新操作
|
|
@@ -294,7 +294,7 @@ func doSubCreditByUser(userId, umid, typeName, code string, next *time.Time, use
|
|
|
},
|
|
|
}, false, false) {
|
|
|
//暂停通知,因积分不够
|
|
|
- creditrpc.SendMsgWebAndWx(swordfish_closeTitle+"["+creditrpc.Message["txt_"+code]+"]", swordfish_close, userId, umid)
|
|
|
+ creditrpc.SendMsgWebAndWx(fmt.Sprintf(swordfish_closeTitle, creditrpc.Message["txt_"+code]), fmt.Sprintf(swordfish_close, creditrpc.Message["txt_"+code]), userId, umid)
|
|
|
}
|
|
|
}
|
|
|
}, func(e interface{}) {
|