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
d147ca6c
Commit
d147ca6c
authored
Mar 10, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
local的key有问题
parent
b8d9f1a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
local.ini
local.ini
+4
-4
inner.go
route/group_power_r/inner.go
+5
-6
No files found.
local.ini
View file @
d147ca6c
...
...
@@ -59,12 +59,12 @@ TX_OVERSEA_APP_ID=40000066
TX_OVERSEA_KEY
=
3ab68ea5bddc8774d90b8c764ae71188914bd5fd06f30b28790c51e44ca7885c
[EMAS]
REGION_ID
=
cn-hangzhou
ACCESS_KEY_ID
=
LTAI
4FhNPzxdzD4w6bHirL9Z
ACCESS_KEY_SECRET
=
OQvUJpXDrjGi3g1F2aHiAIFWIvLdbP
ACCESS_KEY_ID
=
LTAI
dQZv5H1kNZp5
ACCESS_KEY_SECRET
=
UnwY0ClDkqBMLwPx3OJJiLYyk9xYLO
ANDROID_APP_KEY
=
30250713
ANDROID_APP_SECRET
=
cae7b9a9d3e54577d2c3b60bf6d23047
IOS_APP_KEY
=
30
240346
IOS_APP_SECRET
=
57f33ab9ca6a957a8c659f2b0b6d1205
IOS_APP_KEY
=
30
790728
IOS_APP_SECRET
=
4fd69ca084c67d4b5a8d15452f0af26a
APNS
=
DEV
[AGORA]
APP_ID
=
fc3e087f701b4f788099e1924c3cc7b0
...
...
route/group_power_r/inner.go
View file @
d147ca6c
...
...
@@ -4,7 +4,6 @@ import (
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/mycontext"
"git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/sdk/emas"
"github.com/gin-gonic/gin"
"hilo-group/_const/enum/groupPower_e"
"hilo-group/_const/enum/msg_e"
...
...
@@ -74,7 +73,7 @@ func MGetGroupPowers(c *gin.Context) (*mycontext.MyContext, error) {
func
Test
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
var
model
=
domain
.
CreateModelNil
()
if
err
:=
msg_m
.
NewUserRecord
(
model
,
4522
,
msg_e
.
GroupPowerUser
Leave
,
"frozen"
,
4522
,
""
,
""
,
""
,
""
,
""
)
.
Persistent
();
err
!=
nil
{
if
err
:=
msg_m
.
NewUserRecord
(
model
,
4522
,
msg_e
.
GroupPowerUser
Join
,
"frozen"
,
4522
,
""
,
""
,
""
,
""
,
""
)
.
Persistent
();
err
!=
nil
{
return
nil
,
err
}
mgrUser
,
_
:=
user_m
.
GetUser
(
model
,
4522
)
...
...
@@ -82,9 +81,9 @@ func Test(c *gin.Context) (*mycontext.MyContext, error) {
if
err
!=
nil
{
return
nil
,
err
}
err
=
emas
.
SendIosMsgAll
(
"全部消息测试"
)
if
err
!=
nil
{
return
nil
,
err
}
//err :
= emas.SendIosMsgAll("全部消息测试")
//
if err != nil {
//
return nil, err
//
}
return
nil
,
nil
}
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