diff --git a/app/Command/JinlingCommand.php b/app/Command/JinlingCommand.php index 33ac240..b68c12c 100644 --- a/app/Command/JinlingCommand.php +++ b/app/Command/JinlingCommand.php @@ -44,7 +44,7 @@ class JinlingCommand extends HyperfCommand */ $paymentService = $this->container->make(PaymentService::class); $paramsJson = '{"return_code":"SUCCESS","nonce_str":"4a40481401bb47cc81411ab3a8181bad","timestamp":1682659313039,"sign":"5AD859576B783CB44D1FAA0E7DD4C463","order_no":"TR23042830042195760003775","out_order_no":"2023042813194700001","total_amount":2,"currency":"AUD","order_time":"20230428151948","pay_time":"20230428152021","exchange_rate":459899100,"cny_amount":9}'; - $params = json_encode($paramsJson); + $params = json_decode($paramsJson, true); $ret = $paymentService->notify($params); var_dump($ret); return;