diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 76ea826..4d25c68 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -383,7 +383,7 @@ class Coupon extends Base 'partner_trade_no' => $mch_billno,// 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号) 'openid' => $account->open_id, 'check_name' => 'NO_CHECK',// NO_CHECK:不校验真实姓名, FORCE_CHECK:强校验真实姓名 - 'amount' => $amount, //单位为分,不小于100 + 'amount' => $amount * 100, //单位为分,不小于100 'desc' => '验证优惠券分销,分销者领取', ]; diff --git a/app/validate/CouponRelease.php b/app/validate/CouponRelease.php index 2aecb1f..17e7114 100644 --- a/app/validate/CouponRelease.php +++ b/app/validate/CouponRelease.php @@ -15,7 +15,7 @@ class CouponRelease extends Validate 'type|优惠券类型' => 'require|>:0', 'start_time|开始时间' => 'require|date', 'end_time|结束时间' => 'require|date|checkEndTime', - 'name|优惠券名称' => 'require|chsAlphaNum|length:3,32', + 'name|优惠券名称' => 'require|length:3,32', //'money|金额' => 'require|>:0|<=:5000', 'deduction_money|扣除金额' => 'require|>=:0|<=:100000', 'image_url|预览图' => 'require',