Commit 3adb8e1c authored by wanjilong's avatar wanjilong

add: 增加钱包调用appid

parent 53e59269
......@@ -23,6 +23,19 @@ class WalletService
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);
}
private function sign($params, $secret) {
$sign = md5($params['time'] . $secret);
return $sign;
}
}
\ No newline at end of file
......@@ -39,12 +39,24 @@ dingTalk.keys[]="SEC0298ad3f80e16df12cd4d6f6c39e961b500e2ff486f4c4377c0e2af8f453
[prod : common : exception : dingTalk]
pingxx.appid = "app_9m1ubDG4e1mPXLCG"
wxApp.jw.order = "https://wx.appgc.cn/%23/bpmp/ticket/my"
[pref : common : exception : dingTalk]
pingxx.appid = "app_9m1ubDG4e1mPXLCG"
wallet.appid = "21091014413030105002"
wallet.secret = "b62eff98ba17160df0161ede4eef2346"
[pref : prod : common : exception : dingTalk]
pingxx.appid = "app_XfjznTPSa5aLfvfH"
[test : common : exception : dingTalk]
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"
wxApp.jw.order = "https://testwx.appgc.cn/%23/bpmp/ticket/my"
wallet.appid = "21090716133838205004"
wallet.secret = "f97c50e880d377a0e0f79aee1f639777"
\ No newline at end of file
......@@ -15,14 +15,26 @@ dingTalk.tokens[]="5d754d76cac8c64aad495bc44f481677745ff831aee0517b6e5b3565be6ba
dingTalk.keys[]="SEC0298ad3f80e16df12cd4d6f6c39e961b500e2ff486f4c4377c0e2af8f4539a74"
[prod : common : dingTalk]
pnigxx.appid = "app_9m1ubDG4e1mPXLCG"
[prod : common : exception : dingTalk]
pingxx.appid = "app_9m1ubDG4e1mPXLCG"
wxApp.jw.order = "https://wx.appgc.cn/%23/bpmp/ticket/my"
[pref : common : dingTalk]
pnigxx.appid = "app_9m1ubDG4e1mPXLCG"
wallet.appid = "21091014413030105002"
wallet.secret = "b62eff98ba17160df0161ede4eef2346"
[test: common : dingTalk]
[pref : prod : common : exception : dingTalk]
pingxx.appid = "app_XfjznTPSa5aLfvfH"
[test : common : exception : dingTalk]
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"
wxApp.jw.order = "https://testwx.appgc.cn/%23/bpmp/ticket/my"
wallet.appid = "21090716133838205004"
wallet.secret = "f97c50e880d377a0e0f79aee1f639777"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment