efps-version
elf 1 year ago
parent 00e113d18d
commit 82a3f2625d

@ -49,7 +49,7 @@ class MineCommand extends HyperfCommand
*/ */
$paymentService = $this->container->make(PaymentService::class); $paymentService = $this->container->make(PaymentService::class);
$params = $this->payNew(); $params = $this->pay();
$data = $paymentService->payment($params); $data = $paymentService->payment($params);
var_dump($data); var_dump($data);
return; return;
@ -277,7 +277,7 @@ class MineCommand extends HyperfCommand
'nonce_str' => StringHelper::getRandomString(32), 'nonce_str' => StringHelper::getRandomString(32),
'data' => json_encode([ 'data' => json_encode([
'outOrderNo' => time().rand(1000, 9999), 'outOrderNo' => time().rand(1000, 9999),
'outMemberId' => 'T00001', 'outMemberId' => 'T00004',
'amount' => 100, 'amount' => 100,
'notifyUrl' => 'https://www.baidu.com', 'notifyUrl' => 'https://www.baidu.com',
]), ]),

@ -284,7 +284,7 @@ class RechargeController extends AbstractController
} }
$offset = ($page - 1) * $pageSize; $offset = ($page - 1) * $pageSize;
$query = Order::query()->where('app_id', $appId); $query = Order::query()->whereIn('app_id', $appIds);
if ($status) { if ($status) {
$query->where('status', $status); $query->where('status', $status);
} }

Loading…
Cancel
Save