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