* @package score * @version $Id: control.php $ * @link https://www.zentao.net */ class score extends control { /** * 创建积分。 * javascript use : $.get(createLink('score', 'ajax', "method=method")); * * @param string $method * @access public * @return void */ public function ajax(string $method = '') { $this->score->create('ajax', $method); } /** * 展示积分规则。 * Show score rule. * * @access public * @return void */ public function rule() { $this->app->loadLang('my'); $this->view->title = $this->lang->my->scoreRule; $this->view->rules = $this->score->buildRules(); $this->display(); } }