'require', 'refund_total_amount' => 'require|egt:0', 'refund_way' => 'require|in:1,2' ]; protected $message = [ 'id.require' => '参数缺失', 'refund_total_amount.require' => '请输入退款金额', 'refund_total_amount.egt' => '退款金额须大于等于0', 'refund_way.require' => '请选择退款方式', 'refund_way.in' => '退款方式状态值有误', ]; /** * @notes 卖家同意售后场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/2 19:22 */ public function sceneAgree() { return $this->only(['id']); } /** * @notes 卖家拒绝售后场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/2 19:55 */ public function sceneRefuse() { return $this->only(['id']); } /** * @notes 卖家拒绝收货场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/3 11:56 */ public function sceneRefuseGoods() { return $this->only(['id']); } /** * @notes 卖家确认收货场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/3 14:03 */ public function sceneConfirmGoods() { return $this->only(['id']); } /** * @notes 卖家同意退款场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/3 14:19 */ public function sceneAgreeRefund() { return $this->only(['id']); } /** * @notes 卖家拒绝退款场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/3 14:29 */ public function sceneRefuseRefund() { return $this->only(['id']); } /** * @notes 卖家确认退款场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/3 10:47 */ public function sceneConfirmRefund() { return $this->only(['id', 'refund_total_amount', 'refund_way']); } /** * @notes 售后详情场景 * @return AfterSaleValidate * @author Tab * @date 2021/8/9 18:12 */ public function sceneDetail() { return $this->only(['id']); } }