@@ -131,6 +131,7 @@ class Orders extends Api
}
$order['amount_profit']=$amount_profit;
$order['amount_profit_per']=bcmul(100,bcdiv($order['amount_profit'],$order['amount_pay']));
+ $order->save();
$order->address()->save($address->orderAddress());
Db::commit();