first commit

This commit is contained in:
2020-08-06 16:37:53 +08:00
commit 91311c63a4
12865 changed files with 1504178 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
namespace App\Http\Controllers;
use App\Api\Controllers\ApiResponse;
class SkyxuController
{
use ApiResponse;
public function index()
{
$postData = [
'server_id' => '20200103490104',
'key' => 'rRhHO7Jbao2SSxAH8VygV4DgS4L2WESa',
'addcode' => '69198663',
'sign' => '6cd2232e9aa853219a0dff80430567796d0ae33d6c0289dfa835813def08ed8c',
'data' => 'DBEgnb5HidvKQDyxL0BAcCwuMkVdbTZRVu4mxwwzAM5TWj\/HAQfcrH9VzcgdG42lINsHYvI2Tv+MJfyP9eXVEQ==',
];
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://pa.cnskl.com/api/V1/user/freezecoupon",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $postData,
CURLOPT_HTTPHEADER => array(
"Content-Type: multipart/form-data;",
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
}
}