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
0d100094
Commit
0d100094
authored
Jun 07, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化cp纪念日
parent
cae2fa71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cp_relation.go
route/cp_r/cp_relation.go
+9
-0
No files found.
route/cp_r/cp_relation.go
View file @
0d100094
...
@@ -195,6 +195,15 @@ func ReplyCpInvite(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -195,6 +195,15 @@ func ReplyCpInvite(c *gin.Context) (*mycontext.MyContext, error) {
model
.
Log
.
Errorf
(
"ReplyCpInvite InitCpLevel fail:%v-%v-%v"
,
userSender
.
ID
,
user
.
ID
,
err
)
model
.
Log
.
Errorf
(
"ReplyCpInvite InitCpLevel fail:%v-%v-%v"
,
userSender
.
ID
,
user
.
ID
,
err
)
return
err
return
err
}
}
// 初始化cp纪念日
if
err
:=
cp_m
.
InitCpAnniversary
(
model
,
cp_m
.
CpRelationTmp
{
Entity
:
mysql
.
Entity
{
ID
:
mysql
.
ID
(
cpId
)},
UserId1
:
userSender
.
ID
,
UserId2
:
user
.
ID
,
});
err
!=
nil
{
model
.
Log
.
Errorf
(
"ReplyCpInvite InitCpAnniversary fail:%v-%v-%v"
,
userSender
.
ID
,
user
.
ID
,
err
)
return
err
}
// 发放告白礼物 cwj----
// 发放告白礼物 cwj----
//if _, err = bag_tx.SendUserBag(model, userSender.ID, 1, award.GiftId, award.GiftN, 3, "告白礼物"); err != nil {
//if _, err = bag_tx.SendUserBag(model, userSender.ID, 1, award.GiftId, award.GiftN, 3, "告白礼物"); err != nil {
// model.Log.Errorf("ReplyCpInvite userSender:%d, user:%d, status:%d, err:%v", userSender.ID, user.ID, updateStatus, err)
// model.Log.Errorf("ReplyCpInvite userSender:%d, user:%d, status:%d, err:%v", userSender.ID, user.ID, updateStatus, 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