Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
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
hujiebin
hilo-group
Commits
c81d05c6
Commit
c81d05c6
authored
Apr 14, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/charge_tips' into 'master'
充值提示 See merge request
!16
parents
fe085534
0338e2e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
constDef.go
common/constDef.go
+1
-0
diamond.go
domain/service/diamond_s/diamond.go
+1
-1
middleHandle.go
route/middleHandle.go
+6
-0
No files found.
common/constDef.go
View file @
c81d05c6
...
...
@@ -107,6 +107,7 @@ const (
MSG_ID_BUY_FROM_FAMILY
MsgIdType
=
167
// 请向本家族代理购买钻石
MSG_ID_NEED_JOIN_FAMILY
MsgIdType
=
168
// 请加入代理的家族后进行购买
MSG_ID_SET_FAMILY_NAMEPL
MsgIdType
=
169
// 等级不够不能修改家族铭牌
MSG_ID_CHARGE_NO_AREA
MsgIdType
=
181
// 充值(代理转账,用户给代理充值),失败,不是本区域用户
ADD_GROUP_FAILED
AddGroupResultType
=
0
ADD_GROUP_DONE
AddGroupResultType
=
1
...
...
domain/service/diamond_s/diamond.go
View file @
c81d05c6
...
...
@@ -38,7 +38,7 @@ func (this *DiamondService) CheckDealerTransferFamilyLimit(dealerId, userId uint
return
err
}
if
dealerArea
!=
area
{
return
bizerr
.
DealerCannotSaleToOtherArea
return
myerr
.
WrapErr
(
res_m
.
GetErrByLanguage
(
model
.
Db
,
common
.
MSG_ID_CHARGE_NO_AREA
,
lang
,
bizerr
.
DealerCannotSaleToOtherArea
))
}
// 代理、用户是否加入了家族
...
...
route/middleHandle.go
View file @
c81d05c6
...
...
@@ -102,6 +102,12 @@ func LoggerHandle(c *gin.Context) {
c
.
Set
(
mycontext
.
APP_VERSION
,
appVersion
)
c
.
Set
(
mycontext
.
URL
,
reqUri
)
c
.
Set
(
mycontext
.
METHOD
,
method
)
lang
:=
header
.
Get
(
mycontext
.
LANGUAGE
)
c
.
Set
(
mycontext
.
LANGUAGE
,
lang
)
carrier
:=
header
.
Get
(
mycontext
.
CARRIER
)
c
.
Set
(
mycontext
.
CARRIER
,
carrier
)
timezone
:=
header
.
Get
(
mycontext
.
TIMEZONE
)
c
.
Set
(
mycontext
.
TIMEZONE
,
timezone
)
userId
,
_
:=
req
.
GetUserId
(
c
)
...
...
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