uid = $uid; $this->amount = $amount; $this->time = $time; } /** * Execute the job. * * @return void */ public function handle() { $client = new Client(); $params = [ 'uid' => $this->uid, 'amount' => $this->amount, 'time' => $this->time, 'source' => 'wdy' ]; $params['sign'] = _sign($params, SysConsts::TIKTOK_KEY); $url = 'https://newtrackapi.zhuishuyun.com/api/user/tiktokUserChargePush'; $response = $client->request('post', $url, ['form_params' => $params])->getBody()->getContents(); myLog('tiktok_push_charge')->info($response); $result = json_decode($response); if ($result) { if ($result->code != 0) { myLog('tiktok_push_charge')->info($response); } } } }