rabin 1 year ago
parent
commit
06b66bed24
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/dai/seller/lib/Manage.php
  2. 2 2
      src/dai/seller/lib/Order.php

+ 1 - 1
src/dai/seller/lib/Manage.php

@@ -170,7 +170,7 @@ class Manage extends Auth
                 if ($info['status'] == 10) {
                     $msg = 'ok';
                 }
-                Dever::load('order', 'seller')->notify($info, $msg);
+                Dever::load('order', 'seller')->notify($info, $msg, array(), 5, 2);
             }
         }
     }

+ 2 - 2
src/dai/seller/lib/Order.php

@@ -186,7 +186,7 @@ class Order
     }
 
     # 向商户发起回调
-    public function notify($info, $msg, $update = array(), $total = 5)
+    public function notify($info, $msg, $update = array(), $total = 5, $oper = 1)
     {
         $seller = Dever::db('info', 'seller')->find($info['seller_id']);
         $status = 11;
@@ -242,7 +242,7 @@ class Order
             $update['finish'] = 1;
             $update['finish_date'] = time();
             $info = array_merge($info, $update);
-            $this->finish($info);
+            $this->finish($info, $oper);
         }
         if (!$info['order_num']) {
             $update['order_num'] = $this->createOrder();