app/Console/Commands/FanDetails.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $accountId = $this->argument('account_id');
        $account = $this->getAccount($accountId);
        $fanModel = new FanModel();
        $total = $fanModel->where('account_id', $accountId)->count();
        $this->performUpdateUserDetail($total, $fanModel, $account);
    }
public function handle ( ) { $ accountId = $ this -> argument ( 'account_id' ) ; $ account = $ this -> getAccount ( $ accountId ) ; $ fanModel = new FanModel ( ) ; $ total = $ fanModel -> where ( 'account_id' , $ accountId ) -> count ( ) ; $ this -> performUpdateUserDetail ( $ total , $ fanModel , $ account ) ; }
Execute the console command.
Execute the console command .
/*
         * 1 获取Account
         */ /*
         * 3.3 获取粉丝详细信息并更新本地
         */