|
|
|
@ -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,
|
|
|
|
|