config['api_id'] . ":" . $this->config['api_key']) . time()); $header = [ 'cache-control:no-cache', 'Content-Type:application/json', 'datetime:' . time(), 'Authorization:' . $str ]; $result = $this->httpPData($this->url . 'v1/Base/createToken', ['appid' => $this->config['api_id']], $header); // 记录日志 $uid = defined('UID') ? UID : ''; platformLog(['appid' => $this->config['api_id']], $result, 'zixishi_get_access_token_uid_' . $uid); return $result; } }