修改逻辑

This commit is contained in:
lingling 2025-02-20 22:25:31 +08:00
parent cf68049323
commit 79911a28b5
1 changed files with 7 additions and 3 deletions

View File

@ -61,12 +61,16 @@ class PaymentNew
{ {
$url = "https://mdf.hr5688.com/api/createPaymentOrder"; $url = "https://mdf.hr5688.com/api/createPaymentOrder";
$PaymentChannelId = 0; $PaymentChannelId = 0;
if ($payeeBankName == "bKash") { $banks = [strtoupper("bKash"), strtoupper("Nagad")];
if (!in_array(strtoupper($payeeBankName), $banks)) {
return -1;
}
if (strtoupper($payeeBankName) == strtoupper("bKash")) {
$PaymentChannelId = 34; $PaymentChannelId = 34;
} else { }
if (strtoupper($payeeBankName) == strtoupper("Nagad")) {
$PaymentChannelId = 35; $PaymentChannelId = 35;
} }
// Guzzle HTTP client // Guzzle HTTP client
$client = new Client(); $client = new Client();
// var_dump($orderId); // var_dump($orderId);