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
912f22f4
Commit
912f22f4
authored
Jun 15, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
93251632
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
188 additions
and
0 deletions
+188
-0
.env
test/.env
+1
-0
cp_test.go
test/cp_test.go
+16
-0
local.ini
test/local.ini
+171
-0
No files found.
test/.env
0 → 100644
View file @
912f22f4
MODE=local
test/cp_test.go
0 → 100644
View file @
912f22f4
package
test
import
(
"git.hilo.cn/hilo-common/domain"
"hilo-user/domain/model/cp_m"
"testing"
)
func
TestInitCpAnniversary
(
t
*
testing
.
T
)
{
err
:=
cp_m
.
InitCpAnniversary
(
domain
.
CreateModelNil
(),
cp_m
.
CpRelation
{
Id
:
1
,
UserId1
:
7642
,
UserId2
:
4549
,
},
"ar"
)
println
(
err
)
}
test/local.ini
0 → 100644
View file @
912f22f4
[DATABASE]
MYSQL_HOST
=
47.244.34.27:3306
MYSQL_USERNAME
=
root
MYSQL_PASSWORD
=
yX0jPAhO0I4s2zlA
MYSQL_DB
=
hilo
[DATABASECODE]
MYSQL_HOST
=
47.244.34.27:3306
MYSQL_USERNAME
=
root
MYSQL_PASSWORD
=
yX0jPAhO0I4s2zlA
MYSQL_DB
=
hilo_code
[REDIS]
REDIS_HOST
=
47.244.34.27:6379
REDIS_PASSWORD
=
8QZ9JD1zLvPR3yHf
[JWT]
SECRET
=
hilo1632
ISSUER_API
=
hiloApi
ISSUER_Mgr
=
hiloMgr
EXPIRE
=
240h
[GAMEJWT]
SECRET
=
hilo1632
ISSUER_CLIENT
=
hiloClient
ISSUER_SERVER
=
hiloServer
EXPIRE
=
240h
[APP]
MASTER
=
false
BIZ_SECRET
=
biz
WEB_SECRET
=
webHilo1258
OPERATION_SECRET
=
operation1258236
SUPERUSER
=
2701,2831
OFFICIAL_STAFF
=
2701,2831
OFFICIAL_GROUP
=
@TGS#3NC2ATRHS,@TGS#33W3KNLHK
MINIMAL_VERSION_ANDROID
=
212
MINIMAL_VERSION_IOS
=
100
MODERATE
=
AWS
[OSS]
OSS_ACCESS_KEY_ID
=
LTAIxdazV2pCuV3T
OSS_ACCESS_KEY_SECRET
=
zuAnreAXQ6vlAKnvvmolFLfb1N5w5S
OSS_ROLE_ARN
=
acs:ram::1509841556585969:role/aliyunosstokengeneratorrole
OSS_END_POINT
=
http://oss-accelerate.aliyuncs.com
OSS_BUCKET
=
starvoice
OSS_CDN
=
https://oss.chathot.me/
OSS_EXPIRED_TIME
=
3600
OSS_STS_POINT
=
me-east-1
OSS_STS
=
sts-faceline-demo
OSS_STS_AES
=
484194d4d0f968a7
[AWS]
AWS_BUCKET
=
starchat
AWS_CDN
=
https://image.whoisamy.shop/
AWS_DIR
=
hilo/
CONFIDENCE
=
80
[RONGYUN]
RONG_CLOUD_APP_KEY
=
pvxdm17jpe9tr
RONG_CLOUD_APP_SECRET
=
rI4giiKWaBS4
RONG_CLOUD_URL
=
https://api-sg01.ronghub.com
[TENCENTYUN]
TENCENTYUN_APP_ID
=
1400548270
TENCENTYUN_KEY
=
321bd60f73096b059c7350f1cd97d51028850b34fa58c5c0d26bb4a19e783de8
TX_OVERSEA_APP_ID
=
40000066
TX_OVERSEA_KEY
=
3ab68ea5bddc8774d90b8c764ae71188914bd5fd06f30b28790c51e44ca7885c
[EMAS]
REGION_ID
=
cn-hangzhou
ACCESS_KEY_ID
=
LTAI4FhNPzxdzD4w6bHirL9Z
ACCESS_KEY_SECRET
=
OQvUJpXDrjGi3g1F2aHiAIFWIvLdbP
ANDROID_APP_KEY
=
30250713
ANDROID_APP_SECRET
=
cae7b9a9d3e54577d2c3b60bf6d23047
IOS_APP_KEY
=
30240346
IOS_APP_SECRET
=
57f33ab9ca6a957a8c659f2b0b6d1205
APNS
=
DEV
[AGORA]
APP_ID
=
fc3e087f701b4f788099e1924c3cc7b0
APP_CERTIFICATE
=
ff29c100a613433db82324e8411eabc8
CUSTOMER_KEY
=
6b132c0ff7164560a2bc53fda06ea85a
CUSTOMER_SECRET
=
eedad2cd16d24834990d5450ace9f1ce
CALLBACK_SECRET
=
n_ZizS_N8
[CHECKOUT]
AUTHORIZATION
=
sk_test_9b5e771c-5a3f-4a8d-a4da-31b19bd43d83
URL
=
https://api.sandbox.checkout.com/hosted-payments
H5
=
http://test.chathot.me/action/hiloHtml/22_05_30_recharge/topup.html
HILO_SECRET_KEY
=
sk_test_dfbaa3b6-135d-4376-9996-2089b7d8a086
[MATCH]
MATCH_FREE_TIME
=
60
MATCH_FREE_TIME_VIP
=
300
MATCH_ADD_TIME_FREE
=
90
MATCH_AGORA_TIME
=
30
MATCH_CYCLE
=
8
MATCH_USER_EXPIRES
=
480
MATCH_SUCCESS_WAIT_DURATION
=
10
MATCH_SUCCESS_SINGLE_WAIT_TIME_IN_SEC
=
12
MATCH_SUCCESS_DUAL_WAIT_TIME_IN_SEC
=
15
[ONLINE]
ONLINE_CYCLE
=
600
ONLINE_USER_EXPIRES
=
259200
[VIDEO]
VIDEO_DAILY_FREE_NUM
=
20
VIDEO_FREE_TIME
=
60
VIDEO_FREE_TIME_VIP
=
300
VIDEO_ADD_TIME_FREE
=
60
VIDEO_AGORA_TIME
=
30
VIDEO_MINUTE_NORMAL
=
1000
VIDEO_MINUTE_UNION
=
2000
[SESSION]
SESSION_DAILY_FREE_NUM
=
50
[BEAN]
DIAMOND_BEAN_RATE
=
90
[H5]
USER_LEVEL
=
http://test.chathot.me/action/activityhtml/hiloUserLevel/index.html
GROUP_SUPPORT
=
http://test.chathot.me/action/activityhtml/21_12_06/page.html
LUCKY_WHEEL
=
https://h5.whoisamy.shop/action/activityhtml/21_12_30/page.html
NOBLE_BUY_IOS
=
https://h5.whoisamy.shop/action/hiloHtml/lxt_h5/page.html
[GROUPIM]
MSG_SORT_EXPIRE
=
43200
MSG_SORT_SNAP
=
300
[GRADE]
CHARM_SPEED_VIP
=
15
ACTITY_SPEED_VIP
=
15
WEALTH_SPEED_VIP
=
15
[LIKE]
I_LIKE_NUM
=
30
I_LIKE_NUM_VIP
=
100
I_LIKE_NUM_NOBLE
=
1000
[APPLEPAY]
PASSWORD
=
38702750a05c4cb09c9d6ca646835634
[REGISTER]
IMEI_TOTAL
=
3
IMEI_OAUTH
=
2
ACCOUNT_IP
=
100
ACCOUNT_IP_DURATION
=
21600
[BANNER]
GIFT_BANNER_LEVEL1
=
100
GIFT_BANNER_LEVEL2
=
2000
GIFT_BANNER_LEVEL3
=
5000
[DIAMOND]
DAILY_LOGIN_IMEI_LIMIT
=
200
DAILY_LOGIN_IP_LIMIT
=
5
PRIVATE_GIFT_RETURN
=
1440
NEW_USER_INVITE_AWARD
=
5000
[LUCKY_WHEEL]
MINIMAL_PARTICIPANT
=
2
WAIT_TIMELONG
=
10
WINNER_DIAMOND_BANNER
=
100
[GROUP_CUSTOM_THEME]
PIC_LIMIT
=
5
DAY
=
10
[GIFT]
WALL_DIAMOND
=
10
[DAILY]
LOGIN_COMMON
=
5
LOGIN_VIP
=
300
[DAILY]
LOGIN_COMMON
=
5
LOGIN_VIP
=
300
[FRUIT_TYCOON]
POOL_RATIO
=
20
WATERMELON_RATIO
=
70
[ACTIVITY]
COUNTRY_STAR_POOL_RATIO
=
20
COUNTRY_STAR_ORDINARY_RATIO
=
20
[PAYER_MAX]
URL
=
https://pay-gate-uat.payermax.com/aggregate-pay-gate/api/gateway
KEY
=
d50d149a883b8bb6
MERCHANT_ID
=
SP11018326
BIZ_TYPE
=
CUSTOMIZE
VERSION
=
2.3
FRONT_CALLBACK_URL
=
https://www.hiloconn.com
SHOW_RESULT
=
1
EXPIRE_TIME
=
1800
LANGUAGE
=
en
[SUD]
API_LIST
=
https://sim-asc.sudden.ltd
[URL]
BIZ_HTTP
=
https://test.apiv1.faceline.live
\ No newline at end of file
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