has('action')){ return response()->error('PARAM_EMPTY'); } $action = $request->input('action'); $hay_stack = ['manual','bookRecom','noticePromote', 'withdraw','notice', 'query', 'sumData','promotionNovel', 'rankNovel','pagePromote','businessPromote','smartPush', 'templateMsg','clientMsg','picArtElem','miniProgram','keywordRe', 'promoteStats','pushStats','rechargeRecord','balanceCenter', 'serviceAccountSet','ClientSet','siteList']; if(!in_array($action,$hay_stack)){ return response()->error('PARAM_ERROR'); } $data = array( 'uid'=>$this->getChannelUserId(), 'action' =>$action, ); Behavior::create($data); return response()->success(); } }