diff --git a/module/admin/control.php b/module/admin/control.php index 4efd83e5bc..bf740bebee 100755 --- a/module/admin/control.php +++ b/module/admin/control.php @@ -23,8 +23,8 @@ class admin extends control { set_time_limit(0); - /* 设置1.5级导航信息。*/ - /* Set the 1.5 nav. */ + /* 设置导航信息。*/ + /* Set the nav. */ $this->admin->setMenu(); /* 处理社区登记。*/ diff --git a/module/admin/model.php b/module/admin/model.php index eda09a490a..5d0f58278d 100755 --- a/module/admin/model.php +++ b/module/admin/model.php @@ -96,6 +96,7 @@ class adminModel extends model } /** + * 设置后台二级导航。 * Set admin menu. * * @access public @@ -310,10 +311,9 @@ class adminModel extends model */ public function getMenuKey() { - $moduleName = $this->app->rawModule; - $methodName = $this->app->rawMethod; - $firstParam = $this->app->rawParams ? reset($this->app->rawParams) : ''; - $secondParam = $this->app->rawParams ? next($this->app->rawParams) : ''; + $moduleName = $this->app->rawModule; + $methodName = $this->app->rawMethod; + $firstParam = $this->app->rawParams ? reset($this->app->rawParams) : ''; foreach($this->config->admin->menuGroup as $menuKey => $menuGroup) { @@ -366,12 +366,13 @@ class adminModel extends model } /** + * 检查网络。 * Check internet. * * @access public * @return bool */ - public function checkInternet() + public function checkInternet(): bool { $timeout = 1; $curl = curl_init(); @@ -388,12 +389,13 @@ class adminModel extends model } /** + * 获取禅道使用时长。 * Get date used object. * * @access public * @return object */ - public function genDateUsed() + public function genDateUsed(): object { $firstUseDate = $this->dao->select('date')->from(TABLE_ACTION) ->where('date')->gt('1970-01-01') diff --git a/module/admin/test/model/checkweak.php b/module/admin/test/model/checkweak.php index da0e20fead..94babbcfda 100755 --- a/module/admin/test/model/checkweak.php +++ b/module/admin/test/model/checkweak.php @@ -19,4 +19,3 @@ r($admin->checkWeakTest('user3')) && p() && e('1'); //测试密码与手机相 r($admin->checkWeakTest('user4')) && p() && e('1'); //测试密码与电话相同 r($admin->checkWeakTest('user5')) && p() && e('1'); //测试密码与生日相同 r($admin->checkWeakTest('user6')) && p() && e('0'); //测试使用复杂密码 -