efps-version
elf 1 year ago
parent 9d18f9b556
commit 6afb97f743

@ -242,13 +242,13 @@ class MineCommand extends HyperfCommand
public function pay()
{
$params = [
'app_id' => '202304270000004',
'app_id' => '202305270000001',
'timestamp' => time(),
'nonce_str' => StringHelper::getRandomString(32),
'data' => json_encode([
'outOrderNo' => time().rand(1000, 9999),
'outMemberId' => 'T001',
'amount' => 100,
'outMemberId' => '1687241209',
'amount' => 1000,
'notifyUrl' => 'https://www.baidu.com',
]),
];
@ -262,8 +262,8 @@ class MineCommand extends HyperfCommand
// 'notifyUrl' => 'http://154.23.187.206:9216/api/pay/notify/aboypay/P202306152340565850000',
// 'outOrderNo' => 'P202306152340565850000'
// ])
// ];lSHKbuFngCXHN8Ue1s8QHAAzPvOL3u9O nM2bUJT89njQGzoeDyK8cLmEYJloUsJX
$sign = \App\Helper\Platform\Signer::sign($params, 'lSHKbuFngCXHN8Ue1s8QHAAzPvOL3u9O');
// ];lSHKbuFngCXHN8Ue1s8QHAAzPvOL3u9O nM2bUJT89njQGzoeDyK8cLmEYJloUsJX nM2bs8kGzoeDyK8cLmEYJloUksk
$sign = \App\Helper\Platform\Signer::sign($params, 'lsHKbuFngCXhN8Ue1s8QHAgzPvOL3u9O');
$params['sign'] = $sign;
// echo json_encode($params);
return $params;

Loading…
Cancel
Save