StephenArk30 6 éve
szülő
commit
fa9cf438c1

+ 8 - 6
sourcecode/h5app/vue/src/components/schoolCard.vue

@@ -66,11 +66,12 @@
                 console.log(this.photo);
                 let formData = new FormData();
                 formData.append('file', this.photo);
-                BasicFunction.get_data("http://gift.fogice.com/server/fileserver/upload?sign=abcdefg", function (res) {
-                    // if (res.model === undefined || res.model.length === 0) {
-                    //     Toast.fail('上传失败,请重试');
-                    //     return;
-                    // }
+
+                BasicFunction.get_data("fileserver/upload?sign=abcdefg", function (res) {
+                    if (res === undefined || res.model === undefined || res.model.length === 0 || res.model.list === undefined) {
+                        Toast.fail('上传失败,请重试');
+                        return;
+                    }
                     try {
                         let photoURL = res.model;
                         if (res.ret === '10000') {
@@ -114,7 +115,8 @@
             BasicFunction.get_data('smartIdentity/list?userId=' + userid, function (res) {
                 // console.log('----- User Identity -----');
                 // console.log(res);
-                if (res === undefined || res.model === undefined) {
+
+                if (res === undefined || res.model === undefined || res.model.list === undefined) {
                     Toast('读取失败,请检查网络');
                     that.$router.push('verify');
                 }

+ 5 - 1
sourcecode/h5app/vue/src/components/schoolidCard.vue

@@ -151,7 +151,8 @@
                 BasicFunction.get_data("smartUsers/list?uid=" + userId, function (response) {
                     // console.log("------ Data Rcvd in getIdentityInfo --------");
                     // console.log(response);
-                    if (response === undefined) {
+
+                    if (response === undefined || response.model === undefined || response.model.list === undefined || response.model.list.length === 0) {
                         that.$router.push('index');
                     }
                     try {
@@ -176,6 +177,9 @@
                 BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (response) {
                     // console.log("------ Data Rcvd in getReviewInfo --------");
                     // console.log(response);
+                    if (response === undefined || response.model === undefined || response.model.list === undefined || response.model.list.length === 0) {
+                        that.$router.push('index');
+                    }
                     try {
                         let t = response.model.list;
                         if (response.ret === "10000") {

+ 3 - 2
sourcecode/h5app/vue/src/connector/basic-service.js

@@ -331,9 +331,10 @@ var BasicFunction = new (function () {
             BasicFunction.logwarn("-----  Too many failure, temporary stop HTTP ------");
             BasicFunction.send_alert("很抱歉,网络错误数量过多,暂时终止HTTP功能30s");
         }
-        BasicFunction.send_alert(" 很抱歉,网络错误,请查看 Console");
+        BasicFunction.send_alert(" 结果处理代码报错!请检查 。");
         BasicFunction.logwarn(msg);
-        BasicFunction.logwarn("-----   网络请求失败 ---------");
+        BasicFunction.logwarn("-----   结果处理报错 ---------");
+        BasicFunction.logwarn(this);
         BasicFunction.logwarn("-----------msg-------------");
         BasicFunction.logwarn(JSON.stringify(msg));
         BasicFunction.logwarn("----------------------------");

+ 2 - 2
sourcecode/h5app/vue/src/views/index.vue

@@ -46,8 +46,8 @@
             </div>
         </div>
         <div style="margin: 20px 10px 80px; font-size: 15px">
-            <p style="margin-bottom: 0">如果您发现礼物图片不正确或无法加载,请点击礼物-修改礼物重新上传图片</p>
-            <p style="margin-top: 5px">Bug反馈请加负责人微信: 17788752557</p>
+            <p style="margin-bottom: 0">Tips:</p>
+            <p style="margin-top: 5px">我们十分重视您的礼物<br/> 如果使用中遇到疑惑 <br/> 欢迎您随时微信联系 177-8875-2557 </p>
         </div>
         <add-present-button :can_add="button_active"/>
     </div>