|
@@ -193,8 +193,19 @@ class CouponRewardRule extends Auth{
|
|
|
}
|
|
|
// 错误告知
|
|
|
if( !$oldData ) return $this->error('查无数据');
|
|
|
+ $couponCodes = '';
|
|
|
+ $couponIDArray = [];
|
|
|
+ if ($oldData['coupon_id']) {
|
|
|
+ // 兼容逗号问题
|
|
|
+ $couponIDs = str_ireplace(',',',',$oldData['coupon_id']);
|
|
|
+ $couponIDs = explode(',',$couponIDs);
|
|
|
+ foreach ($couponIDs as $value) {
|
|
|
+ $couponIDArray[] = $Coupon->idToCode($value);
|
|
|
+ }
|
|
|
+ $couponCodes = implode(',',$couponIDArray);
|
|
|
+ }
|
|
|
// 优惠券编码
|
|
|
- $oldData['coupon_code'] = $Coupon->idToCode($oldData['coupon_id']);
|
|
|
+ $oldData['coupon_code'] = $couponCodes;
|
|
|
// 排除客户
|
|
|
if( $oldData['remove_custom'] ) {
|
|
|
// 列表
|