all(); //Logger::app('tarck'.json_encode($params)); if (empty($params['ip']) || strstr($params['ip'], '240e') || $params['ip'] == '__IP__') { $params['ip'] = get_client_ip(); } if (empty($params['ua']) || $params['ua'] == '__UA__') { $params['ua'] = get_client_ua(); } if (getProp($params,'is_confirm')) { $ishave = DouyinTrack::where('ip',$params['ip'])->where('distribution_channel_id',$params['channel_id'])->where('callback',$params['clickid'])->first(); if ($ishave) { return 'success1' ; } } TrackService::push($params); return 'success' ; } }