Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenweijian
hilo-user
Commits
4e1214a5
Commit
4e1214a5
authored
Jun 14, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im check
parent
47f034c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
7 deletions
+82
-7
3.9.0.sql
mysql/3.9.0.sql
+76
-1
cp_relation.go
route/cp_r/cp_relation.go
+6
-6
No files found.
mysql/3.9.0.sql
View file @
4e1214a5
...
...
@@ -253,4 +253,79 @@ VALUES (274, 'zh', "%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
(
274
,
'ur'
,
""
);
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
275
,
'zh'
,
"等待对方接受"
),
(
275
,
'en'
,
"Waiting to be accepted"
),
(
275
,
'ar'
,
"في انتظار قبول الطرف الآخرى"
),
(
275
,
'tr'
,
"Kabul edilmeyi bekliyorum"
),
(
275
,
'id'
,
"Menunggu untuk diterima"
),
(
275
,
'ru'
,
"Ожидание принятия"
),
(
275
,
'ko'
,
"수락 대기 중"
),
(
275
,
'pt'
,
"Esperando ser aceito"
),
(
275
,
'th'
,
"รอรับได้เลยครับ"
),
(
275
,
'ca'
,
"Esperando ser aceptado"
),
(
275
,
'hi'
,
"स्वीकार किए जाने की प्रतीक्षा कर रहा है"
),
(
275
,
'vi'
,
"Chờ đợi để được chấp nhận"
),
(
275
,
'ur'
,
"قبول ہونے کا انتظار ہے۔"
);
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
276
,
'zh'
,
"邀请被接受"
),
(
276
,
'en'
,
"Invitation accepted"
),
(
276
,
'ar'
,
"تم قبول الدعوة"
),
(
276
,
'tr'
,
"davet kabul edildi"
),
(
276
,
'id'
,
"undangan diterima"
),
(
276
,
'ru'
,
"приглашение принято"
),
(
276
,
'ko'
,
"초대 수락됨"
),
(
276
,
'pt'
,
"convite aceito"
),
(
276
,
'th'
,
"ยอมรับคำเชิญแล้ว"
),
(
276
,
'ca'
,
"invitación aceptada"
),
(
276
,
'hi'
,
"निमंत्रण स्वीकार किया"
),
(
276
,
'vi'
,
"lời mời được chấp nhận"
),
(
276
,
'ur'
,
"دعوت قبول کی"
);
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
277
,
'zh'
,
"邀请被拒绝"
),
(
277
,
'en'
,
"Invitation refused"
),
(
277
,
'ar'
,
"تم رفض الدعوة"
),
(
277
,
'tr'
,
"davet reddedildi"
),
(
277
,
'id'
,
"undangan ditolak"
),
(
277
,
'ru'
,
"приглашение отклонено"
),
(
277
,
'ko'
,
"초대가 거부됨"
),
(
277
,
'pt'
,
"convite recusado"
),
(
277
,
'th'
,
"คำเชิญถูกปฏิเสธ"
),
(
277
,
'ca'
,
"invitación rechazada"
),
(
277
,
'hi'
,
"निमंत्रण अस्वीकार कर दिया"
),
(
277
,
'vi'
,
"lời mời từ chối"
),
(
277
,
'ur'
,
"دعوت سے انکار کر دیا"
);
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
278
,
'zh'
,
"已解绑CP"
),
(
278
,
'en'
,
"CP has been unbound"
),
(
278
,
'ar'
,
"تم فك علاقة CP"
),
(
278
,
'tr'
,
"CP bağlantısı kaldırıldı"
),
(
278
,
'id'
,
"CP telah dilepaskan"
),
(
278
,
'ru'
,
"CP не привязан"
),
(
278
,
'ko'
,
"CP가 언바운드되었습니다."
),
(
278
,
'pt'
,
"CP foi desvinculado"
),
(
278
,
'th'
,
"CP หลุดแล้ว"
),
(
278
,
'ca'
,
"CP ha sido desvinculado"
),
(
278
,
'hi'
,
"सीपी अनबाउंड किया गया है"
),
(
278
,
'vi'
,
"CP không bị ràng buộc"
),
(
278
,
'ur'
,
"سی پی کو غیر پابند کیا گیا ہے۔"
);
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
279
,
'zh'
,
"已被取消"
),
(
279
,
'en'
,
"Has been canceled"
),
(
279
,
'ar'
,
"تم الإلغاء"
),
(
279
,
'tr'
,
"İptal edildi"
),
(
279
,
'id'
,
"Telah dibatalkan"
),
(
279
,
'ru'
,
"Была отменена"
),
(
279
,
'ko'
,
"취소되었습니다"
),
(
279
,
'pt'
,
"Foi cancelado"
),
(
279
,
'th'
,
"ถูกยกเลิก"
),
(
279
,
'ca'
,
"Ha sido cancelado"
),
(
279
,
'hi'
,
"रद्द किया गया"
),
(
279
,
'vi'
,
"Đã hủy bỏ"
),
(
279
,
'ur'
,
"منسوخ کر دیا گیا ہے۔"
);
\ No newline at end of file
route/cp_r/cp_relation.go
View file @
4e1214a5
...
...
@@ -494,12 +494,12 @@ func CheckCpImExpire(c *gin.Context) (*mycontext.MyContext, error) {
switch
cpRecord
.
Status
{
case
cp_e
.
CpInvite
:
if
userId
==
cpRecord
.
UserId
{
// 发起人
resId
=
common
.
MSG_ID_
ALREADY_EXPIR
ED
// 等待对方接受
resId
=
common
.
MSG_ID_
WAITING_ACCEPT
ED
// 等待对方接受
}
case
cp_e
.
CpInviteAccept
:
resId
=
common
.
MSG_ID_
ALREADY_EXPIR
ED
// 已接受
resId
=
common
.
MSG_ID_
INVITATION_ACCEPT
ED
// 已接受
case
cp_e
.
CpInviteRefuse
:
resId
=
common
.
MSG_ID_
ALREADY_EXPIR
ED
// 已拒绝
resId
=
common
.
MSG_ID_
INVITATION_REFUS
ED
// 已拒绝
case
cp_e
.
CpInviteExpired
:
resId
=
common
.
MSG_ID_ALREADY_EXPIRED
}
...
...
@@ -516,12 +516,12 @@ func CheckCpImExpire(c *gin.Context) (*mycontext.MyContext, error) {
switch
cpCancel
.
Status
{
case
cp_e
.
CpCancel
:
if
userId
==
cpCancel
.
UserId
{
// 发起人
resId
=
common
.
MSG_ID_
ALREADY_EXPIR
ED
// 等待对方接受
resId
=
common
.
MSG_ID_
WAITING_ACCEPT
ED
// 等待对方接受
}
case
cp_e
.
CpCancelRevoke
:
resId
=
common
.
MSG_ID_
ALREADY_EXPIR
ED
// 已被取消
resId
=
common
.
MSG_ID_
HAS_BEEN_CANCEL
ED
// 已被取消
case
cp_e
.
CpCancelAccept
,
cp_e
.
CpCancelAcceptAuto
:
resId
=
common
.
MSG_ID_
ALREADY_EXPIRE
D
// 已解绑
resId
=
common
.
MSG_ID_
CP_UNBOUN
D
// 已解绑
}
}
if
resId
>
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment