|
@@ -311,4 +311,24 @@ class Task
|
|
|
}*/
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public function yes()
|
|
|
+ {
|
|
|
+ $where['status'] = 10;
|
|
|
+ $order = Dever::db('order_log1', 'seller')->select($where);
|
|
|
+ foreach ($order as $k => $v) {
|
|
|
+ if ($v['channel_callback']) {
|
|
|
+ $temp = Dever::json_decode($v['channel_callback']);
|
|
|
+ if (isset($temp['official_order_num'])) {
|
|
|
+ $up['official_order_num'] = $temp['official_order_num'];
|
|
|
+ }
|
|
|
+ if (isset($temp['voucher'])) {
|
|
|
+ $up['official_order_num'] = $temp['voucher'];
|
|
|
+ }
|
|
|
+ if (isset($up) && $up) {
|
|
|
+ Dever::db('order_log1', 'seller')->update($v['id'], $up);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|