|
@@ -40,6 +40,13 @@ class Order
|
|
|
$update['audit'] = $audit;
|
|
|
$update['audit_type'] = $audit_type;
|
|
|
|
|
|
+ if ($update['status'] == 2) {
|
|
|
+ $update['operdate'] = time();
|
|
|
+ $update['fdate'] = $update['operdate'];
|
|
|
+ if (isset($order['fdate']) && $order['fdate'] && ($order['status'] == 5 || $order['status'] == 6)) {
|
|
|
+ $update['fdate'] = $order['fdate'];
|
|
|
+ }
|
|
|
+ }
|
|
|
if ($info && $jstype == 3) {
|
|
|
|
|
|
} else {
|
|
@@ -51,14 +58,6 @@ class Order
|
|
|
$update['source_id'] = $order['source_id'];
|
|
|
}
|
|
|
|
|
|
- if ($update['status'] == 2) {
|
|
|
- $update['operdate'] = time();
|
|
|
- $update['fdate'] = $update['operdate'];
|
|
|
- if (isset($order['fdate']) && $order['fdate'] && ($order['status'] == 5 || $order['status'] == 6)) {
|
|
|
- $update['fdate'] = $order['fdate'];
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$update['source_order_num'] = $order['order_num'];
|
|
|
$update['num'] = $order['num'];
|
|
|
|