setter
parent
12b6ada71c
commit
fcd20b81b6
|
@ -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' => '验证优惠券分销,分销者领取',
|
||||
];
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue