This commit is contained in:
2022-05-25 16:01:04 +08:00
parent 0b14852cfe
commit 717b91dd5c
3 changed files with 153 additions and 29 deletions

View File

@@ -16,14 +16,18 @@ class PetroController
{
try {
$res = PetroYsd::Invalid()
->setParams([
'requestId' => Str::random(32),
'couponId' => '2830025247791780434',
'couponType' => 0,
])->start();
// dd(
// base64_decode('6buR6b6Z5rGfNuWFg+ayueWTgea1i+ivleWIuA==')
// );
dd($res);
// $res = PetroYsd::Invalid()
// ->setParams([
// 'requestId' => Str::random(32),
// 'couponId' => '2830025247791780434',
// 'couponType' => 0,
// ])->start();
//
// dd($res);
// $res = PetroYsd::Query()
// ->setParams([
@@ -40,12 +44,12 @@ class PetroController
// ])->start();
//
// dd($res);
$res = PetroYsd::Grant()->setParams([
'requestId' => Str::random(32),
'productNo' => 'hljlt_hlj6yypcs',
'mobile' => '15663876870',
'num' => 1,
'notifyUrl' => route('petro_new.grant_notice'),
'thirdOrderId' => Str::random(32),
])->start();