lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
d0a99debe8
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  1. 2 2
      app/controller/util.js
  2. 0 1
      app/service/shop/shopNotice.js

+ 2 - 2
app/controller/util.js

@@ -14,8 +14,8 @@ class UtilController extends Controller {
     this.tradeService = this.ctx.service.util.trade;
   }
   async util() {
-    const res = this.ctx.multiply(this.ctx.minus(1, this.ctx.divide(0, 100)), 200);
-    this.ctx.ok({ data: res });
+    // await this.ctx.service.util.rabbitMq.shopMsg('6333d71d32c5f69745f9bd32');
+    this.ctx.ok({ data: 'ok' });
   }
 
   async crk() {

+ 0 - 1
app/service/shop/shopNotice.js

@@ -90,7 +90,6 @@ class ShopNoticeService extends CrudService {
   }
 
   async countNotRead({ shop }) {
-    console.log({ shop, status: '0' });
     return this.model.count({ shop, status: '0' });
   }
 }