|
@@ -36,13 +36,15 @@ class Test
|
|
|
{
|
|
|
while(1) {
|
|
|
$order = Dever::db('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);
|
|
|
+ if ($order) {
|
|
|
+ $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);
|
|
|
+ }
|
|
|
};
|
|
|
}
|
|
|
}
|