'require', 'pay_way' => 'require|in:' . PayEnum::BALANCE_PAY . ',' . PayEnum::WECHAT_PAY . ',' . PayEnum::ALI_PAY. ',' . PayEnum::BYTE_PAY . ',' . PayEnum::OFFLINE_PAY, 'order_id' => 'require' ]; protected $message = [ 'from.require' => '参数缺失', 'pay_way.require' => '支付方式参数缺失', 'pay_way.in' => '支付方式参数错误', 'order_id.require' => '订单参数缺失' ]; /** * @notes 获取支付方式场景 * @author Tab * @date 2021/8/28 10:24 */ public function scenePayway() { return $this->only(['from', 'order_id', 'scene']) ->append('scene','require'); } public function scenePaystatus() { return $this->only(['from', 'order_id']); } /** * @notes 获取支付结果场景 * @return PayValidate * @author 段誉 * @date 2022/4/6 15:12 */ public function scenePayresult() { return $this->only(['from', 'order_id']); } }