@@ -765,6 +765,11 @@ class OrderController extends BaseController
if ($needWork == 1) {
$main = $this->main;
WorkClass::needWork($order, $main);
+ $has = WorkClass::getByCondition(['orderId' => $id], true);
+ if (!empty($has)) {
+ $return->hasWork = 1;
+ $return->save();
+ }
}
$transaction->commit();