From 0b3c9be6b6706e4bdd53d6a6ed88ff0cce7cce1a Mon Sep 17 00:00:00 2001 From: ljl Date: Tue, 22 Aug 2023 13:06:37 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index e924df8..d529158 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -45,8 +45,7 @@ class MineCommand extends HyperfCommand public function handle(): void { - $this->rsyncBankCards(); - $this->bindCard(); + $this->getRequestData(); 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_bind_card', $this->getApp(), ['userId' => '23121', 'bindCardFlag' => true]); @@ -100,14 +99,33 @@ class MineCommand extends HyperfCommand protected function getRequestData() { $app = $this->getApp(); - $data = json_encode([ - 'userId' => 'CWX1989' - ]); + $data = [ + '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 = [ 'app_id' => $app->app_id, 'nonce_str' => StringHelper::getRandomString(16), 'timestamp' => time(), - 'data' => $data, + 'data' => json_encode($data), ]; $params['sign'] = Signer::sign($params, $app->app_key); echo json_encode($params); @@ -308,7 +326,7 @@ class MineCommand extends HyperfCommand $data = [ 'userId' => 'ELF1990', 'goodsName' => '测试商品', - 'agreementNo' => '312023081200002052866', + 'agreementNo' => '312023082200002060225', 'notifyUrl' => 'http://www.baidu.com', 'returnUrl' => 'http://www.baidu.com', 'amount' => 100,