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