Commit c14fb90a92c70cbe4ecf93bdc0893adad246765e
1 parent
3edaba5f
【一键订C端:预订成功,安排桌位后,日程及预订成功页面,订单的状态显示已完成】https://www.tapd.cn/57419716/bugtrace/bug…
…s/view?bug_id=1157419716001002905
Showing
2 changed files
with
10 additions
and
1 deletions
| @@ -98,6 +98,11 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | @@ -98,6 +98,11 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | ||
| 98 | console.log('res-fail',res,e); | 98 | console.log('res-fail',res,e); |
| 99 | } | 99 | } |
| 100 | } | 100 | } |
| 101 | + }else{ | ||
| 102 | + if (wx.getRealtimeLogManager) { | ||
| 103 | + const logger = wx.getRealtimeLogManager() | ||
| 104 | + logger.error('接口错误', host+cache_key,res) | ||
| 105 | + } | ||
| 101 | } | 106 | } |
| 102 | success(res.data); | 107 | success(res.data); |
| 103 | }, | 108 | }, |
| @@ -110,6 +115,10 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | @@ -110,6 +115,10 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | ||
| 110 | // }); | 115 | // }); |
| 111 | //query.show(); | 116 | //query.show(); |
| 112 | //console.log('net',query); | 117 | //console.log('net',query); |
| 118 | + if (wx.getRealtimeLogManager) { | ||
| 119 | + const logger = wx.getRealtimeLogManager() | ||
| 120 | + logger.error('调用失败', host+cache_key,res) | ||
| 121 | + } | ||
| 113 | }, | 122 | }, |
| 114 | complete:function(){ | 123 | complete:function(){ |
| 115 | wx.hideLoading(); | 124 | wx.hideLoading(); |
| @@ -82,6 +82,6 @@ export default { | @@ -82,6 +82,6 @@ export default { | ||
| 82 | if(!last_time) return detail.edate; | 82 | if(!last_time) return detail.edate; |
| 83 | let ns=util.timetouUnix(util.unixtoTime(detail.edate,"YYYY-MM-DD "+last_time.substr(0,5)+':00')) | 83 | let ns=util.timetouUnix(util.unixtoTime(detail.edate,"YYYY-MM-DD "+last_time.substr(0,5)+':00')) |
| 84 | if(hasToday) return ns | 84 | if(hasToday) return ns |
| 85 | - return ns=86400 | 85 | + return ns+86400 |
| 86 | }, | 86 | }, |
| 87 | } | 87 | } |
-
Please register or login to post a comment