diff --git a/mysql/3.9.0.sql b/mysql/3.9.0.sql index ebbc812ee51c0d002499f60e4c0316b0b9b88b5f..d59d86d805af0e98c992884a78c60cbea1b0c15e 100644 --- a/mysql/3.9.0.sql +++ b/mysql/3.9.0.sql @@ -238,4 +238,19 @@ VALUES (273, 'zh', "绑定CP返还"), (273, 'ca', "Retorno de CP vinculante"), (273, 'hi', "बाध्यकारी सीपी वापसी"), (273, 'vi', "Lợi nhuận CP ràng buộc"), - (273, 'ur', "بائنڈنگ CP واپسی۔"); \ No newline at end of file + (273, 'ur', "بائنڈنگ CP واپسی۔"); + +INSERT INTO hilo.res_multi_text (msg_id, `language`, content) +VALUES (274, 'zh', "%s撤销了解绑CP的申请"), + (274, 'en', "%s canceled the application to unbind CP"), + (274, 'ar', "%s قام بسحب طلبه لفك ارتباط CP"), + (274, 'tr', "%s, CP'nin bağlantısını kaldırma başvurusunu iptal etti"), + (274, 'id', "%s membatalkan aplikasi untuk melepaskan CP"), + (274, 'ru', "%s отменил заявку на отвязку CP"), + (274, 'ko', "%s이(가) CP 바인딩 해제 신청을 취소했습니다."), + (274, 'pt', "%s cancelou o aplicativo para desvincular CP"), + (274, 'th', "%s ยกเลิกแอปพลิเคชันเพื่อยกเลิกการเชื่อมโยง CP"), + (274, 'ca', "%s canceló la solicitud para desvincular CP"), + (274, 'hi', "%s ने सीपी को अनबाइंड करने के लिए आवेदन को रद्द कर दिया"), + (274, 'vi', "%s đã hủy đơn đăng ký hủy liên kết CP"), + (274, 'ur', ""); \ No newline at end of file diff --git a/route/cp_r/cp_relation.go b/route/cp_r/cp_relation.go index ec6360fad7afc51d9011c39b189c37f041dd671e..dfbfa92bfe739bcd514cd67105daa603538bc04b 100644 --- a/route/cp_r/cp_relation.go +++ b/route/cp_r/cp_relation.go @@ -346,13 +346,13 @@ func ReplyCpCancel(c *gin.Context) (*mycontext.MyContext, error) { var msgData []byte if optType == 1 { // 撤销解除 // 私信 - //content, err := msg.GetResMultiTextBy(model, common.MSG_ID_UNBIND_CP_SUCCEED, lang) - //if err != nil { - // return err - //} + content, err := msg.GetResMultiTextBy(model, common.MSG_ID_CANCEL_UNBIND_CP, lang) + if err != nil { + return err + } msgData, _ = json.Marshal(cp_m.CpDealCancelMessage{ Identifier: "CpDealCancelMessage", - Msg: fmt.Sprintf("%s withdrew my application to lift CP", myUser.Nick), // cwj---- + Msg: fmt.Sprintf(content, myUser.Nick), Status: 1, }) } else { // 接受解除