guhongwei %!s(int64=2) %!d(string=hai) anos
pai
achega
56cba02fa8
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      app/schedule/user.js

+ 1 - 2
app/schedule/user.js

@@ -7,7 +7,6 @@ module.exports = {
     type: 'worker', // 指定所有的 worker 都需要执行
   },
   async task(ctx) {
-    console.log('11');
-    // ctx.service.user.watchvip();
+    ctx.service.user.watchvip();
   },
 };