|
|
@@ -113,6 +113,10 @@ class OrderController extends BaseController
|
|
|
ProductClass::valid($productList, $this->shopId);
|
|
|
$post['product'] = $productList;
|
|
|
$return = OrderClass::addOrder($post, $this->shop);
|
|
|
+ //总订单+1
|
|
|
+ \biz\shop\services\ShopService::totalOrderPlus($this->shopId);
|
|
|
+ //总收入
|
|
|
+ \biz\shop\services\ShopService::updateTotalIncome($this->shopId,$return['actPrice']);
|
|
|
$transaction->commit();
|
|
|
util::success($return);
|
|
|
} catch (\Exception $e) {
|