$sql = "select count(*) as num from api_log where uid='{$this->uid}'";
$data = DB::select($sql);
$data = array_map('get_object_vars', $data);
$sql = "select count(*) as num from api_log where uid='{$this->uid}'";
$data = DB::select($sql);
$data = array_map('get_object_vars', $data);