ljl 1 year ago
parent 0427d515e6
commit bab630b15a

@ -45,7 +45,7 @@ class MineCommand extends HyperfCommand
public function handle(): void public function handle(): void
{ {
$this->queryOrder(); $this->unbindCard();
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]);
@ -164,7 +164,7 @@ class MineCommand extends HyperfCommand
* @var UserService $userService * @var UserService $userService
*/ */
$userService = $this->container->make(UserService::class); $userService = $this->container->make(UserService::class);
$result = $userService->unbindCard(['userId' => 'ELF1990', 'agreementNo' => '312023080400002047764'], $this->getApp()); $result = $userService->unbindCard(['userId' => 'ELF1990', 'agreementNo' => '312023081200002052866'], $this->getApp());
var_dump($result); var_dump($result);
} }

@ -439,7 +439,7 @@ class PaymentService extends AbstractService
if (empty($user)) { if (empty($user)) {
throw new BusinessException('用户不存在'); throw new BusinessException('用户不存在');
} }
$order = Order::where('app_id', $app->app_id)->where('out_order_no', $data['outOrderNo'])->first(); $order = Order::where('app_id', $app->app_id)->where('out_order_no', $data['oldOutOrderNo'])->first();
if (empty($order)) { if (empty($order)) {
throw new BusinessException('订单不存在'); throw new BusinessException('订单不存在');
} }

Loading…
Cancel
Save