get(['CRMEB','TESD'])); } protected function test_board() { Log::warning("board updated."); $ctl = new UserBoardController(); $ctl->cache_board(); } protected function test_calc() { $activities = [new ClearanceCalc(), new LuckyCalc()]; foreach($activities as $activity) { $activity->calc(); } } protected function test_carousel() { SystemCarousel::add('good test', '/pages/leader_board/index'); print_r(SystemCarousel::getFirst(20)); SystemCarousel::removeTrash(); } protected function test_wechat_robot() { $key = Config::get('app.qy_weixin_robot_aristotle'); // $svc = \crmeb\services\QyWeixinService::instance(); // $svc->key($key)->markdown("### user commented\n>hhhh\n1. upm youth\n2. shiny tommorowwww")->post(); WechatNotify::push(WechatNotify::TYPE_COMMENT, $key, 'gdf'); } public function test() { //$this->test_wechat_robot(); } }