|
|
@@ -9,6 +9,8 @@ use crmeb\utils\Redis;
|
|
|
use think\facade\Log;
|
|
|
use app\api\controller\board\UserBoardController;
|
|
|
use app\models\redis\SystemCarousel;
|
|
|
+use crmeb\services\async\task\WechatNotify;
|
|
|
+use think\facade\Config;
|
|
|
|
|
|
class Test
|
|
|
{
|
|
|
@@ -38,8 +40,15 @@ class Test
|
|
|
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_carousel();
|
|
|
+ //$this->test_wechat_robot();
|
|
|
}
|
|
|
}
|