rabin 3 năm trước cách đây
mục cha
commit
36d5b96693

+ 1 - 2
app/factory/assets/pc/html/order_view.html

@@ -79,6 +79,7 @@ function audit(id, process, url)
     {
         if (!flag) {
             i++;
+            flag = true;
             $.getJSON(url, {id:id,process:process}, function(t)
             {
                 if (t.status == 2) {
@@ -86,8 +87,6 @@ function audit(id, process, url)
                     showAlert(t.msg, false, '错误提示');
                     return; 
                 } else {
-                    // 修改标志位
-                    flag = true;
                     msg(t);
                     layer.close(index);
                     //location.reload();

+ 1 - 2
app/shop/assets/manage/html/buy_order_goods.html

@@ -34,6 +34,7 @@ function audit(id, process, url)
     {
         if (!flag) {
             i++;
+            flag = true;
             $.getJSON(url, {id:id,process:process}, function(t)
             {
                 if (t.status == 2) {
@@ -41,8 +42,6 @@ function audit(id, process, url)
                     showAlert(t.msg, false, '错误提示');
                     return; 
                 } else {
-                    // 修改标志位
-                    flag = true;
                     msg(t);
                     layer.close(index);
                     //location.reload();