ruifeng_liu 3 vuotta sitten
vanhempi
commit
45e69c8dde
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      app/service/statistics/index.js

+ 2 - 1
app/service/statistics/index.js

@@ -404,7 +404,8 @@ class IndexService extends CrudService {
     const trans1 = await patentTrans.count({ type: '转让', user_id: id });
     const trans2 = await patentTrans.count({ type: '合作', user_id: id });
     const trans3 = await patentTrans.count({ type: '招商', user_id: id });
-    return { unread, apply, analysis, access, information, early, trans1, trans2, trans3 };
+    return {
+      message: { unread }, apply: { apply, analysis, access }, patent: { information, early }, transaction: { trans1, trans2, trans3 } };
   }
 
 }