|
|
@ -7,6 +7,7 @@ namespace App\Command;
|
|
|
|
use App\Helper\Signer;
|
|
|
|
use App\Helper\Signer;
|
|
|
|
use App\Service\AppService;
|
|
|
|
use App\Service\AppService;
|
|
|
|
use App\Service\MerchantService;
|
|
|
|
use App\Service\MerchantService;
|
|
|
|
|
|
|
|
use App\Service\PaymentService;
|
|
|
|
use Hyperf\Command\Command as HyperfCommand;
|
|
|
|
use Hyperf\Command\Command as HyperfCommand;
|
|
|
|
use Hyperf\Command\Annotation\Command;
|
|
|
|
use Hyperf\Command\Annotation\Command;
|
|
|
|
use Hyperf\Contract\ContainerInterface;
|
|
|
|
use Hyperf\Contract\ContainerInterface;
|
|
|
@ -38,6 +39,15 @@ class JinlingCommand extends HyperfCommand
|
|
|
|
|
|
|
|
|
|
|
|
public function handle()
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @var PaymentService
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
$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);
|
|
|
|
|
|
|
|
$ret = $paymentService->notify($params);
|
|
|
|
|
|
|
|
var_dump($ret);
|
|
|
|
|
|
|
|
return;
|
|
|
|
$this->buildPayPrams();
|
|
|
|
$this->buildPayPrams();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|