Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

1007395918@qq.com 5 years ago
parent
commit
40f6f32f67
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/components/taro-plugin-canvas/index.js

+ 2
- 0
src/components/taro-plugin-canvas/index.js View File

9
   drawLine,
9
   drawLine,
10
 } from './utils/draw';
10
 } from './utils/draw';
11
 import './index.css';
11
 import './index.css';
12
+import rtLog from '@/utils/rtLog';
12
 
13
 
13
 let count = 1;
14
 let count = 1;
14
 export default class CanvasDrawer extends Component {
15
 export default class CanvasDrawer extends Component {
167
       .catch((err) => {
168
       .catch((err) => {
168
         Taro.hideLoading();
169
         Taro.hideLoading();
169
         Taro.showToast({ icon: 'none', title: err.message || err.errMsg || '下载图片失败' });
170
         Taro.showToast({ icon: 'none', title: err.message || err.errMsg || '下载图片失败' });
171
+        rtLog.error('下载图片失败, 图片地址 ('+ imageUrl +'), 错误消息: ' + ( err.message || err.errMsg || err))
170
         console.error(err);
172
         console.error(err);
171
         if (!onCreateFail) {
173
         if (!onCreateFail) {
172
           console.warn('您必须实现 taro-plugin-canvas 组件的 onCreateFail 方法,详见文档 https://github.com/chuyun/taro-plugin-canvas#fail');
174
           console.warn('您必须实现 taro-plugin-canvas 组件的 onCreateFail 方法,详见文档 https://github.com/chuyun/taro-plugin-canvas#fail');