升级laravel-admin

This commit is contained in:
2022-05-24 16:19:12 +08:00
parent c3461e1335
commit 955c0dda2a
10 changed files with 249 additions and 19 deletions

View File

@@ -7,6 +7,7 @@ use Illuminate\Http\Request;
use Illuminate\Support\Str;
use XuanChen\Petro;
use XuanChen\PetroYsd;
class PetroController
{
@@ -15,14 +16,50 @@ class PetroController
{
try {
//获取动态码
$res = Petro::Check()->setParams([
'ticketNum' => '61578832475977235',
'random' => Str::random(6),
])->start();
$res = PetroYsd::Invalid()
->setParams([
'requestId' => Str::random(32),
'couponId' => '2830025247791780434',
'couponType' => 0,
])->start();
dd($res);
// $res = PetroYsd::Query()
// ->setParams([
// 'requestId' => Str::random(32),
// 'thirdOrderId' => 'B6Q1rzCITRretxUFkIlFUtEciW7kNnq5',
// ])->start();
//
// dd($res);
// $res = PetroYsd::Detail()
// ->setParams([
// 'requestId' => Str::random(32),
// 'couponId' => '2830025247791780426',
// 'couponType' => 0,
// ])->start();
//
// dd($res);
$res = PetroYsd::Grant()->setParams([
'requestId' => Str::random(32),
'productNo' => 'hljlt_hlj6yypcs',
'mobile' => '15663876870',
'num' => 1,
'thirdOrderId' => Str::random(32),
])->start();
dd($res);
dd('老板程序');
//获取动态码
// $res = Petro::Check()->setParams([
// 'ticketNum' => '61578832475977235',
// 'random' => Str::random(6),
// ])->start();
//
// dd($res);
// $res = Petro::Bill()->setParams([
// 'matchDate' => Carbon::now()->format('Ymd'),
// 'pageNo' => 1,