$istmail = 1; }else if($client_code == "100211" || $client_code == "100106" || $client_code == "100105" || $client_code == "100104" || $client_code == "100103" || $client_code == "100096" || $client_code == "100095" ){ $istmail = 2; } $se -> set('istmail',$istmail); $user = $se -> get('user'); $user_id = $user['user_id']; $user_obsj = User::findOne($user_id); if(!$user_obsj -> client_id){ $user_obsj -> client_id = $client_code; $user_obsj -> update(); } // $book = $book = Book::find()->select(['bookid','user_id','book_type','create_time','bookname','author','format','cover','is_share','good_nums'])->where(['user_id' => $user_id,"status" => 1])->joinwith("formatcontent")->joinwith("simplecover")->asArray()->all();
} $se -> set('istmail',$istmail); $user = $se -> get('user'); $user_id = $user['user_id']; $user_obsj = User::findOne($user_id); if(!$user_obsj -> client_id){ $user_obsj -> client_id = $client_code; $user_obsj -> update(); }
$args = $this->controller->bindActionParams($this, $params); Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$params = $this->catchAll; unset($params[0]); } try { Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
defined('YII_ENV') or define('YII_ENV', 'dev'); require(__DIR__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); $config = require(__DIR__ . '/../config/web.php'); (new yii\web\Application($config))->run();
$_SERVER = [ 'USER' => 'nobody', 'HOME' => '/', 'FCGI_ROLE' => 'RESPONDER', 'SCRIPT_FILENAME' => '/usr/local/nginx/html/wzs/web/index.php', 'PATH_INFO' => '', 'PATH_TRANSLATED' => '/usr/local/nginx/html/wzs/web', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'CONTENT_TYPE' => '', 'CONTENT_LENGTH' => '', 'SCRIPT_NAME' => '/index.php', 'REQUEST_URI' => '/app/bookshelf', 'DOCUMENT_URI' => '/index.php', 'DOCUMENT_ROOT' => '/usr/local/nginx/html/wzs/web', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_SOFTWARE' => 'nginx/1.8.0', 'REMOTE_ADDR' => '3.236.18.23', 'REMOTE_PORT' => '59972', 'SERVER_ADDR' => '139.129.111.203', 'SERVER_PORT' => '80', 'SERVER_NAME' => 'weixinshu.clawbook.com', 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_HOST' => 'weixinshu.clawbook.com', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1710845263.8588059, 'REQUEST_TIME' => 1710845263, ]; $_SESSION = [ 'istmail' => 0, ];