mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
提示文字修复
This commit is contained in:
parent
8d1e4fb677
commit
2fb2cae76f
@ -160,8 +160,7 @@ class StoreIntegralOrderServices extends BaseServices
|
||||
if (!$addressId) {
|
||||
throw new ApiException(410045);
|
||||
}
|
||||
if (!$addressInfo = $addressServices->getOne(['uid' => $uid, 'id' => $addressId, 'is_del' => 0]))
|
||||
throw new ApiException(410046);
|
||||
if (!$addressInfo = $addressServices->getOne(['uid' => $uid, 'id' => $addressId, 'is_del' => 0])) throw new ApiException(410046);
|
||||
$addressInfo = $addressInfo->toArray();
|
||||
$total_price = bcmul($productInfo['price'], $num, 2);
|
||||
/** @var UserBillServices $userBillServices */
|
||||
@ -226,7 +225,7 @@ class StoreIntegralOrderServices extends BaseServices
|
||||
$res2 = false !== $userServices->bcDec($userInfo['uid'], 'integral', $priceIntegral, 'uid');
|
||||
/** @var UserBillServices $userBillServices */
|
||||
$userBillServices = app()->make(UserBillServices::class);
|
||||
$res3 = $userBillServices->income('storeIntegral_use_integral', $uid, $priceIntegral, $userInfo['integral'], $orderId);
|
||||
$res3 = $userBillServices->income('storeIntegral_use_integral', $uid, $priceIntegral, $userInfo['integral'] - $priceIntegral, $orderId);
|
||||
$res2 = $res2 && false != $res3;
|
||||
}
|
||||
if (!$res2) {
|
||||
@ -334,7 +333,7 @@ class StoreIntegralOrderServices extends BaseServices
|
||||
/** @var StoreProductAttrValueServices $StoreProductAttrValueServices */
|
||||
$StoreProductAttrValueServices = app()->make(StoreProductAttrValueServices::class);
|
||||
$attrValue = $StoreProductAttrValueServices->uniqueByField($unique, 'product_id,suk,price,image,unique');
|
||||
if(!$attrValue || !isset($attrValue['storeIntegral']) || !$attrValue['storeIntegral']){
|
||||
if (!$attrValue || !isset($attrValue['storeIntegral']) || !$attrValue['storeIntegral']) {
|
||||
throw new ApiException(410295);
|
||||
}
|
||||
$data = [];
|
||||
@ -734,7 +733,7 @@ class StoreIntegralOrderServices extends BaseServices
|
||||
if (!$remark) throw new AdminException(400106);
|
||||
if (!$id) throw new AdminException(100100);
|
||||
if (!$order = $this->dao->get($id)) {
|
||||
throw new AdminException(100025);
|
||||
throw new AdminException(100025);
|
||||
}
|
||||
|
||||
$order->remark = $remark;
|
||||
|
||||
@ -214,7 +214,7 @@ export default {
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
title: '变化前积分',
|
||||
title: '变化后积分',
|
||||
key: 'balance',
|
||||
minWidth: 120,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user