Merge branch 'feature/purchase_record' into dev
This commit is contained in:
commit
ba05a93ad6
@ -1791,8 +1791,8 @@ class ProductRepository extends BaseRepository
|
|||||||
/** @var CommunityRepository $communityRepository */
|
/** @var CommunityRepository $communityRepository */
|
||||||
$communityRepository = app()->make(CommunityRepository::class);
|
$communityRepository = app()->make(CommunityRepository::class);
|
||||||
$communityRepository->saleOrCancel($cart['source_id'], 0);
|
$communityRepository->saleOrCancel($cart['source_id'], 0);
|
||||||
$productAttrValueRepository->descSales($cart['productAttr']['product_id'], $cart['productAttr']['unique'], $cart['cart_num']);
|
$productAttrValueRepository->descSales($cart['product_id'], $cart['cart_info']['productAttr']['unique'], $productNum);
|
||||||
$this->dao->descSales($cart['product']['product_id'], $cart['cart_num']);
|
$this->dao->descSales($cart['product_id'], $productNum);
|
||||||
} else {
|
} else {
|
||||||
$productAttrValueRepository->incStock($cart['product_id'], $cart['cart_info']['productAttr']['unique'], $productNum);
|
$productAttrValueRepository->incStock($cart['product_id'], $cart['cart_info']['productAttr']['unique'], $productNum);
|
||||||
$this->dao->incStock($cart['product_id'], $productNum);
|
$this->dao->incStock($cart['product_id'], $productNum);
|
||||||
|
@ -350,7 +350,7 @@ class Merchant extends BaseController
|
|||||||
if ($this->userInfo['uid'] != $merchant->uid) {
|
if ($this->userInfo['uid'] != $merchant->uid) {
|
||||||
return '你不是管理员无法进行提现操作';
|
return '你不是管理员无法进行提现操作';
|
||||||
}
|
}
|
||||||
$unSettleCount = StoreOrderInterest::where('mer_id', $merchant->mer_id)->where('status', StoreOrderInterest::STATUS_UNSETTLED)->count();
|
$unSettleCount = StoreOrderInterest::where('mer_id', $merchant->mer_id)->where('status', StoreOrderInterest::STATUS_UNSETTLED)->whereTime('start_time', '<=', time())->count();
|
||||||
if ($unSettleCount > 0) {
|
if ($unSettleCount > 0) {
|
||||||
return '有未结清的订单,请结清订单后再进行提现';
|
return '有未结清的订单,请结清订单后再进行提现';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user