rabin hace 1 año
padre
commit
83edd585bb
Se han modificado 1 ficheros con 1 adiciones y 19 borrados
  1. 1 19
      src/dai/seller/api/Task.php

+ 1 - 19
src/dai/seller/api/Task.php

@@ -199,26 +199,8 @@ class Task
     {
         $where['status'] = array('>=', 10);
         $where['seller_callback_num'] = array('<=', 5);
-        $where['#seller_callback_num'] = array('>', 0);
         $where['seller_callback_date'] = array('<=', time() + 300);
-        $where['seller_callback'] = array('!=', 'ok');
-        $order = Dever::db('order', 'seller')->load($where);
-        foreach ($order as $k => $v) {
-            $msg = '';
-            if ($v['status'] == 10) {
-                $msg = 'ok';
-            } elseif ($v['status'] == 11) {
-                $msg = 'error';
-            }
-            if ($msg) {
-                Dever::load('order', 'seller')->notify($v, $msg);
-            }
-        }
-
-        $where = array();
-        $where['status'] = array('>=', 10);
-        $where['seller_callback_num'] = array('<=', 0);
-        $where['channel_id'] = array('<=', 0);
+        $where['finish_date'] = $where['seller_callback_date'];
         $where['seller_callback'] = array('!=', 'ok');
         $order = Dever::db('order', 'seller')->load($where);
         foreach ($order as $k => $v) {