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
5550b064
Commit
5550b064
authored
Jun 14, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cp翻译
parent
51a91b2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
+35
-3
3.9.0.sql
mysql/3.9.0.sql
+31
-1
cp_relation.go
route/cp_r/cp_relation.go
+4
-2
No files found.
mysql/3.9.0.sql
View file @
5550b064
...
@@ -208,4 +208,34 @@ VALUES (258, 'zh', "已经过期"),
...
@@ -208,4 +208,34 @@ VALUES (258, 'zh', "已经过期"),
(
258
,
'ca'
,
"ya vencido"
),
(
258
,
'ca'
,
"ya vencido"
),
(
258
,
'hi'
,
"पहले ही समाप्त हो चुका है"
),
(
258
,
'hi'
,
"पहले ही समाप्त हो चुका है"
),
(
258
,
'vi'
,
"Đã hết hạn"
),
(
258
,
'vi'
,
"Đã hết hạn"
),
(
258
,
'ur'
,
"پہلے ہی ختم ہو چکا ہے۔"
);
(
258
,
'ur'
,
"پہلے ہی ختم ہو چکا ہے۔"
);
\ No newline at end of file
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
272
,
'zh'
,
"绑定CP花费"
),
(
272
,
'en'
,
"Binding CP cost"
),
(
272
,
'ar'
,
"تكلفة CP الارتباط"
),
(
272
,
'tr'
,
"Bağlayıcı CP maliyeti"
),
(
272
,
'id'
,
"Mengikat biaya CP"
),
(
272
,
'ru'
,
"Привязка стоимости CP"
),
(
272
,
'ko'
,
"구속력 있는 CP 비용"
),
(
272
,
'pt'
,
"Custo de CP vinculativo"
),
(
272
,
'th'
,
"ค่าซีพีเข้าเล่ม"
),
(
272
,
'ca'
,
"Costo de CP vinculante"
),
(
272
,
'hi'
,
"बाध्यकारी सीपी लागत"
),
(
272
,
'vi'
,
"Chi phí CP ràng buộc"
),
(
272
,
'ur'
,
"بائنڈنگ CP لاگت"
);
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
273
,
'zh'
,
"绑定CP返还"
),
(
273
,
'en'
,
"Binding CP return"
),
(
273
,
'ar'
,
"استرداد CP الارتباط"
),
(
273
,
'tr'
,
"Bağlayıcı CP dönüşü"
),
(
273
,
'id'
,
"Pengembalian CP yang mengikat"
),
(
273
,
'ru'
,
"Обязательный возврат CP"
),
(
273
,
'ko'
,
"바인딩 CP 반환"
),
(
273
,
'pt'
,
"Retorno de CP vinculativo"
),
(
273
,
'th'
,
"การคืนค่า 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
route/cp_r/cp_relation.go
View file @
5550b064
...
@@ -5,12 +5,14 @@ import (
...
@@ -5,12 +5,14 @@ import (
"fmt"
"fmt"
"git.hilo.cn/hilo-common/_const/common"
"git.hilo.cn/hilo-common/_const/common"
"git.hilo.cn/hilo-common/_const/enum/diamond_e"
"git.hilo.cn/hilo-common/_const/enum/diamond_e"
"git.hilo.cn/hilo-common/_const/enum/msg_e"
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/mycontext"
"git.hilo.cn/hilo-common/mycontext"
"git.hilo.cn/hilo-common/myerr/comerr"
"git.hilo.cn/hilo-common/myerr/comerr"
"git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/sdk/tencentyun"
"git.hilo.cn/hilo-common/sdk/tencentyun"
"git.hilo.cn/hilo-common/txop/bag_tx"
"git.hilo.cn/hilo-common/txop/bag_tx"
"git.hilo.cn/hilo-common/txop/diamond_tx"
"git.hilo.cn/hilo-common/txop/msg"
"git.hilo.cn/hilo-common/txop/msg"
"git.hilo.cn/hilo-common/utils"
"git.hilo.cn/hilo-common/utils"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
...
@@ -19,7 +21,6 @@ import (
...
@@ -19,7 +21,6 @@ import (
"hilo-user/cv/user_cv"
"hilo-user/cv/user_cv"
"hilo-user/domain/cache/user_c"
"hilo-user/domain/cache/user_c"
"hilo-user/domain/model/cp_m"
"hilo-user/domain/model/cp_m"
"hilo-user/domain/model/diamond_m"
"hilo-user/domain/model/user_m"
"hilo-user/domain/model/user_m"
"hilo-user/domain/service/cp_s"
"hilo-user/domain/service/cp_s"
"hilo-user/myerr"
"hilo-user/myerr"
...
@@ -243,7 +244,8 @@ func ReplyCpInvite(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -243,7 +244,8 @@ func ReplyCpInvite(c *gin.Context) (*mycontext.MyContext, error) {
})
})
}
else
{
// 拒绝
}
else
{
// 拒绝
// 退费
// 退费
err
=
diamond_m
.
ChangeDiamondAccountDetail
(
model
,
diamond_e
.
CpInviteRefund
,
cpRecord
.
Id
,
cpRecord
.
UserId
,
cpRecord
.
DiamondNum
)
err
=
diamond_tx
.
SendDiamond
(
model
,
cpRecord
.
UserId
,
diamond_e
.
CpInviteRefund
,
cpRecord
.
Id
,
cpRecord
.
DiamondNum
,
msg_e
.
MgrSendDiamondProperty
)
if
err
!=
nil
{
if
err
!=
nil
{
model
.
Log
.
Errorf
(
"ReplyCpInvite UserId:%d, err:%v"
,
cpRecord
.
UserId
,
err
)
model
.
Log
.
Errorf
(
"ReplyCpInvite UserId:%d, err:%v"
,
cpRecord
.
UserId
,
err
)
return
err
return
err
...
...
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