lrf402788946 4 年 前
コミット
085e676993

+ 0 - 1
app/controller/home.js

@@ -8,7 +8,6 @@ class HomeController extends Controller {
     const a = { id: '1', name: '123' };
     const icon = 'jjjj';
     Object.assign(a, { icon });
-    console.log(a);
     ctx.body = 'hi, egg';
   }
 }

+ 0 - 4
app/controller/wxpay.js

@@ -27,7 +27,6 @@ class WxPayController extends Controller {
     const notify_url = wxapi.wxurl;
     const trade_type = 'JSAPI';
     const sign = await this.service.wxpay.paysignjsapi(wxapi.appid, body, mch_id, nonce_str, notify_url, out_trade_no, spbill_create_ip, total_fee, trade_type, wxapi.mchkey, openid);
-    console.log('sign==', sign);
     let formData = '<xml>';
     formData += '<appid>' + wxapi.appid + '</appid>'; // appid
     formData += '<body><![CDATA[' + body + ']]></body>';
@@ -41,7 +40,6 @@ class WxPayController extends Controller {
     formData += '<sign>' + sign + '</sign>';
     formData += '<openid>' + openid + '</openid>';
     formData += '</xml>';
-    console.log('formData===', formData);
 
     const payurl = wxapi.payurl;
     const paydata = await this.ctx.curl(payurl, {
@@ -49,7 +47,6 @@ class WxPayController extends Controller {
       data: formData,
     });
     const prepay_id = await this.service.wxpay.getXMLNodeValue(paydata.data.toString('UTF-8'));
-    console.log('解析后的prepay_id==', prepay_id);
     // 将预支付订单和其他信息一起签名后返回给前端
     const finalsign = await this.service.wxpay.paysignjsapifinal(wxapi.appid, mch_id, prepay_id, nonce_str, timestamp, wxapi.mchkey);
     const res = { appId: wxapi.appid, partnerId: wxapi.mchid, prepayId: prepay_id, nonceStr: nonce_str, timeStamp: timestamp, package: 'prepay_id=' + prepay_id, sign: finalsign };
@@ -58,7 +55,6 @@ class WxPayController extends Controller {
 
   async wxpaysignback() {
     const { ctx } = this;
-    console.log();
     ctx.body = 'hi, egg';
   }
 

+ 0 - 1
app/service/article.js

@@ -21,7 +21,6 @@ class ArticleService extends CrudService {
       query.user_id = ids;
       delete query.patientid;
     }
-    console.log(query);
     const data = await this.model.find(query).skip(parseInt(skip)).limit(parseInt(limit))
       .sort({ 'meta.createdAt': -1 });
     const total = await this.model.count(query);

+ 0 - 1
app/service/chat.js

@@ -98,7 +98,6 @@ class ChatService extends CrudService {
       icon = patient.icon;
     }
     // TODO: 检查是否已经注册
-    console.log(moment().format('YYYY-MM-DD HH:mm:ss'));
     const newdata = { type, sendid, audiotime, sendname, receiveid, receivename, content, contenttype: data.contenttype, sendtime: moment().format('YYYY-MM-DD HH:mm:ss') };
     const entity = await this.model.create(newdata);
 

+ 0 - 1
app/service/group.js

@@ -29,7 +29,6 @@ class GroupService extends CrudService {
         el.content = groupchat.content;
         el.contenttype = groupchat.contenttype;
         el.sendtime = groupchat.sendtime;
-        console.log(el);
         group = el;
       } else {
         group = el;

+ 0 - 1
app/service/groupchat.js

@@ -78,7 +78,6 @@ class GroupChatService extends CrudService {
       icon = patient.icon;
     }
     // TODO: 检查是否已经注册
-    console.log(moment().format('YYYY-MM-DD HH:mm:ss'));
     const newdata = { doctorid: group.doctorid, audiotime, doctorname: doctor.name, groupid, groupname: group.name, type, sendid, sendname, sendtime: moment().format('YYYY-MM-DD HH:mm:ss'), content, contenttype: data.contenttype };
     const entity = await this.model.create(newdata);
 

+ 0 - 1
app/service/util.js

@@ -25,7 +25,6 @@ class UtilService extends CrudService {
     const keys = Object.keys(filter);
     for (const key of keys) {
       const res = key.match(str);
-      console.log(res);
       if (res) {
         const newKey = key.slice(1, key.length - 1);
         filter[newKey] = new RegExp(filter[key]);