rabin 1 year ago
parent
commit
4405f74816
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/dai/seller/api/Test.php

+ 10 - 4
src/dai/seller/api/Test.php

@@ -34,9 +34,15 @@ class Test
     # 将当前订单置为失败
     public function test_no()
     {
-        $order = Dever::load('order', 'seller')->find(array('seller_id' => 1, 'status' => 2));
-        if ($order) {
-
-        }
+        while(1) {
+            $order = Dever::load('order', 'seller')->find(array('seller_id' => 1, 'status' => 2));
+            $msg = 'error';
+            $update = array();
+            $update['official_msg'] = '';
+            $update['official_order_num'] = '';
+            $update['channel_callback'] = '';
+            $update['channel_callback_date'] = time();
+            Dever::load('order', 'seller')->notify($order, $msg, $update);
+        };
     }
 }