ljl 1 year ago
parent 39a6908392
commit 0b3c9be6b6

@ -45,8 +45,7 @@ class MineCommand extends HyperfCommand
public function handle(): void public function handle(): void
{ {
$this->rsyncBankCards(); $this->getRequestData();
$this->bindCard();
return; return;
// $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_register', $this->getApp(), ['userId' => '30684']); // $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_register', $this->getApp(), ['userId' => '30684']);
$this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_bind_card', $this->getApp(), ['userId' => '23121', 'bindCardFlag' => true]); $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_bind_card', $this->getApp(), ['userId' => '23121', 'bindCardFlag' => true]);
@ -100,14 +99,33 @@ class MineCommand extends HyperfCommand
protected function getRequestData() { protected function getRequestData() {
$app = $this->getApp(); $app = $this->getApp();
$data = json_encode([ $data = [
'userId' => 'CWX1989' 'userId' => 'ELF1990',
]); 'goodsName' => '测试商品',
'agreementNo' => '312023082200002060225',
'notifyUrl' => 'http://www.baidu.com',
'returnUrl' => 'http://www.baidu.com',
'amount' => 100,
'outOrderNo' => time() . rand(1000, 9999),
'validDate' => '2023-08-15',
'marketInfo' => [
'amount' => 0,
'remark' => 'test',
],
'splitInfoList' => [
[
'splitUserId' => 'RLX1990',
'sellerFlag' => 1,
'splitAmount' => 100,
'subOutOrderNo' => time() . rand(1000, 9999),
]
]
];
$params = [ $params = [
'app_id' => $app->app_id, 'app_id' => $app->app_id,
'nonce_str' => StringHelper::getRandomString(16), 'nonce_str' => StringHelper::getRandomString(16),
'timestamp' => time(), 'timestamp' => time(),
'data' => $data, 'data' => json_encode($data),
]; ];
$params['sign'] = Signer::sign($params, $app->app_key); $params['sign'] = Signer::sign($params, $app->app_key);
echo json_encode($params); echo json_encode($params);
@ -308,7 +326,7 @@ class MineCommand extends HyperfCommand
$data = [ $data = [
'userId' => 'ELF1990', 'userId' => 'ELF1990',
'goodsName' => '测试商品', 'goodsName' => '测试商品',
'agreementNo' => '312023081200002052866', 'agreementNo' => '312023082200002060225',
'notifyUrl' => 'http://www.baidu.com', 'notifyUrl' => 'http://www.baidu.com',
'returnUrl' => 'http://www.baidu.com', 'returnUrl' => 'http://www.baidu.com',
'amount' => 100, 'amount' => 100,

Loading…
Cancel
Save