dever 3 years ago
parent
commit
2a31e040b9
1 changed files with 10 additions and 0 deletions
  1. 10 0
      app/mshop/lib/Buy.php

+ 10 - 0
app/mshop/lib/Buy.php

@@ -850,6 +850,16 @@ class Buy
                     'link' => Dever::url('order_send?id=' . $info['id'] . '&type=2', 'store'),
                     'name' => '配送发货',
                 );
+
+                if ($parent_order && $parent_order['uid']) {
+                } else {
+                    $button[] = array
+                    (
+                        'type' => 'cancel',
+                        'link' => Dever::url('lib/buy.refund_apply_commit?json=1&order_id=' . $info['id'] . '&type_id=' . $info['source_id'], 'mshop'),
+                        'name' => '取消订单',
+                    );
+                }
             }
             if ($info['status'] == 4 && $info['type'] == 2) {
                 $button[] = array