You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.9 KiB

<?php
namespace App\Services;
class DailySignService
{
public function signClubHmoe()
{
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://club.hmoe.club/wp-json/b2/v1/userMission",
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_HTTPHEADER => array(
"authority: club.hmoe.club",
"content-length: 0",
"pragma: no-cache",
"cache-control: no-cache",
"accept: application/json, text/plain, */*",
"authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvY2x1Yi5obW9lLmNsdWIiLCJpYXQiOjE2MDAxNTUyNzcsIm5iZiI6MTYwMDE1NTI3NywiZXhwIjoxNjAwNzYwMDc3LCJkYXRhIjp7InVzZXIiOnsiaWQiOiIzODI5NyJ9fX0.eCpbJ-qqYQuS-n04Z-7nUz0C1G06TVdYaZwAHI4dMMo",
"user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36",
"origin: https://club.hmoe.club",
"sec-fetch-site: same-origin",
"sec-fetch-mode: cors",
"sec-fetch-dest: empty",
"referer: https://club.hmoe.club/",
"accept-language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-TW;q=0.6,ja;q=0.5",
"cookie: PHPSESSID=s5j99cdcp99a2go41mq3c3f6hm; wordpress_logged_in_eb096bd0935f7dd6358a62cbe85a51c3=user38297_694%7C1601364877%7CJMM25vh5jDz4ZO21TWW0xm4vJhaNwR8Hhi06USiyEwz%7C9678dbb8017d50d1b20006500c21ee03bec9bc580756c2bc326bc645e14e4222"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
}
}