修改补贴金额的错误
This commit is contained in:
parent
5af33cdc7d
commit
c518d87b39
@ -312,12 +312,12 @@ class StoreCouponUserDao extends BaseDao
|
||||
->field('coupon_price,coupon_type')
|
||||
->select()->toArray();
|
||||
$result = [
|
||||
[
|
||||
StoreCouponRepository::TYPE_STORE_COUPON => [
|
||||
'total_amount' => 0.00,
|
||||
'type' => StoreCouponRepository::TYPE_STORE_COUPON,
|
||||
'type_cn' => StoreCouponRepository::TYPE_MAP[StoreCouponRepository::TYPE_STORE_COUPON],
|
||||
],
|
||||
[
|
||||
StoreCouponRepository::TYPE_PLATFORM_CARD => [
|
||||
'total_amount' => 0.00,
|
||||
'type' => StoreCouponRepository::TYPE_PLATFORM_CARD,
|
||||
'type_cn' => StoreCouponRepository::TYPE_MAP[StoreCouponRepository::TYPE_PLATFORM_CARD],
|
||||
|
@ -203,7 +203,7 @@ class Store extends BaseController
|
||||
$couponPrice = 0;
|
||||
$saleTarget = 0;
|
||||
foreach ($coupon['config'] as $item) {
|
||||
if (!in_array($merchantTypeId, $item['type_id'])) {
|
||||
if (in_array($merchantTypeId, $item['type_id'])) {
|
||||
$couponPrice = $item['subsidy'];
|
||||
$saleTarget = $item['amount'];
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user