Browse Source

没事儿

joe 4 years ago
parent
commit
0dc79f4f86
2 changed files with 49 additions and 1 deletions
  1. 10 1
      app/admin/controller/Test.php
  2. 39 0
      crmeb/subscribes/UserSubscribe.php

+ 10 - 1
app/admin/controller/Test.php

@@ -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();
     }
 }

+ 39 - 0
crmeb/subscribes/UserSubscribe.php

@@ -111,4 +111,43 @@ class UserSubscribe
         UserLevel::setLevelComplete($userUid);
     }
 
+    /**
+     * 新用戶注冊
+     */
+    public function onUserRegistered($event)
+    {
+        echo 'onUserRegistered?';
+    }
+
+    /**
+     * 首次下訂單
+     */
+    public function onUserFirstOrder($event)
+    {
+
+    }
+
+    /**
+     * 首次挖礦得到弊
+     */
+    public function onUserFirstDig($event)
+    {
+
+    }
+
+    /**
+     * 用戶提現
+     */
+    public function onUserWithdrawal($event)
+    {
+
+    }
+
+    /**
+     * 用户提币
+     */
+    public function onUserWithdrawalCoin($event)
+    {
+
+    }
 }