Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pay
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
bp
pay
Commits
3adb8e1c
Commit
3adb8e1c
authored
Sep 10, 2021
by
wanjilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 增加钱包调用appid
parent
53e59269
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
9 deletions
+46
-9
WalletService.php
application/services/wallet/WalletService.php
+13
-0
application.ini
conf/application.ini
+15
-3
cli.ini
conf/cli.ini
+18
-6
No files found.
application/services/wallet/WalletService.php
View file @
3adb8e1c
...
@@ -23,6 +23,19 @@ class WalletService
...
@@ -23,6 +23,19 @@ class WalletService
throw
new
CodeSpecialException
(
"failed"
);
throw
new
CodeSpecialException
(
"failed"
);
}
}
// 服务增加签名
$appid
=
\Yaf\Application
::
app
()
->
getConfig
()
->
get
(
'wallet.appid'
);
$secret
=
\Yaf\Application
::
app
()
->
getConfig
()
->
get
(
'wallet.secret'
);
$params
[
'time'
]
=
date
(
'Y-m-d H:i:s'
);
$params
[
'transfer_service_id'
]
=
$appid
;
$params
[
'sign'
]
=
self
::
sign
(
$params
,
$secret
);
return
Sdk
::
call
(
$url
,
$params
);
return
Sdk
::
call
(
$url
,
$params
);
}
}
private
function
sign
(
$params
,
$secret
)
{
$sign
=
md5
(
$params
[
'time'
]
.
$secret
);
return
$sign
;
}
}
}
\ No newline at end of file
conf/application.ini
View file @
3adb8e1c
...
@@ -39,12 +39,24 @@ dingTalk.keys[]="SEC0298ad3f80e16df12cd4d6f6c39e961b500e2ff486f4c4377c0e2af8f453
...
@@ -39,12 +39,24 @@ dingTalk.keys[]="SEC0298ad3f80e16df12cd4d6f6c39e961b500e2ff486f4c4377c0e2af8f453
[prod : common : exception : dingTalk]
[prod : common : exception : dingTalk]
pingxx.appid
=
"app_9m1ubDG4e1mPXLCG"
pingxx.appid
=
"app_9m1ubDG4e1mPXLCG"
wxApp.jw.order
=
"https://wx.appgc.cn/%23/bpmp/ticket/my"
[pref : common : exception : dingTalk]
wallet.appid
=
"21091014413030105002"
pingxx.appid
=
"app_9m1ubDG4e1mPXLCG"
wallet.secret
=
"b62eff98ba17160df0161ede4eef2346"
[pref : prod : common : exception : dingTalk]
pingxx.appid
=
"app_XfjznTPSa5aLfvfH"
[test : common : exception : dingTalk]
[test : common : exception : dingTalk]
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
wxApp.jw.order
=
"https://testwx.appgc.cn/%23/bpmp/ticket/my"
[dev : common : exception]
wallet.appid
=
"21090716133838205004"
wallet.secret
=
"f97c50e880d377a0e0f79aee1f639777"
[dev : common : exception : dingTalk]
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
wxApp.jw.order
=
"https://testwx.appgc.cn/%23/bpmp/ticket/my"
wallet.appid
=
"21090716133838205004"
wallet.secret
=
"f97c50e880d377a0e0f79aee1f639777"
\ No newline at end of file
conf/cli.ini
View file @
3adb8e1c
...
@@ -15,14 +15,26 @@ dingTalk.tokens[]="5d754d76cac8c64aad495bc44f481677745ff831aee0517b6e5b3565be6ba
...
@@ -15,14 +15,26 @@ dingTalk.tokens[]="5d754d76cac8c64aad495bc44f481677745ff831aee0517b6e5b3565be6ba
dingTalk.keys
[]
="SEC0298ad3f80e16df12cd4d6f6c39e961b500e2ff486f4c4377c0e2af8f4539a74"
dingTalk.keys
[]
="SEC0298ad3f80e16df12cd4d6f6c39e961b500e2ff486f4c4377c0e2af8f4539a74"
[prod : common : dingTalk]
[prod : common : exception : dingTalk]
pnigxx.appid
=
"app_9m1ubDG4e1mPXLCG"
pingxx.appid
=
"app_9m1ubDG4e1mPXLCG"
wxApp.jw.order
=
"https://wx.appgc.cn/%23/bpmp/ticket/my"
[pref : common : dingTalk]
wallet.appid
=
"21091014413030105002"
pnigxx.appid
=
"app_9m1ubDG4e1mPXLCG
"
wallet.secret
=
"b62eff98ba17160df0161ede4eef2346
"
[test: common : dingTalk]
[pref : prod : common : exception : dingTalk]
pingxx.appid
=
"app_XfjznTPSa5aLfvfH"
[test : common : exception : dingTalk]
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
wxApp.jw.order
=
"https://testwx.appgc.cn/%23/bpmp/ticket/my"
wallet.appid
=
"21090716133838205004"
wallet.secret
=
"f97c50e880d377a0e0f79aee1f639777"
[dev : common ]
[dev : common
: exception : dingTalk
]
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
pingxx.appid
=
"app_W10Oe5XrvbzHfP4W"
wxApp.jw.order
=
"https://testwx.appgc.cn/%23/bpmp/ticket/my"
wallet.appid
=
"21090716133838205004"
wallet.secret
=
"f97c50e880d377a0e0f79aee1f639777"
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