data['order_date'])) { throw new ParamsException('订单日期不能为空', 'order_date'); } if(empty($this->data['order_id'])) { throw new ParamsException('订单号不能为空', 'order_id'); } if(empty($this->data['user_name'])) { throw new ParamsException('用户姓名不能为空', 'user_name'); } if(empty($this->data['market_type'])) { throw new ParamsException('应用市场类型不能为空', 'market_type'); } if(!in_array($this->data['market_type'], [Constant::MARKET_MASTER, Constant::MARKET_SUB])) { throw new ParamsException('应用市场类型不正确', 'market_type'); } if(empty($this->data['acct_usage_type'])) { throw new ParamsException('账户用途不能为空', 'acct_usage_type'); } if(!in_array($this->data['acct_usage_type'], [Constant::USE_TO_BUY, Constant::USE_TO_TRANS])) { throw new ParamsException('账户用途类型不正确', 'acct_usage_type'); } if(empty($this->data['id_card'])) { throw new ParamsException('证件号不能为空', 'id_card'); } if(empty($this->data['id_card_type'])) { throw new ParamsException('证件类型不能为空', 'id_card_type'); } if(!in_array($this->data['id_card_type'], [Constant::ID_TYPE_CARD])) { throw new ParamsException('证件类型不支持', 'id_card_type'); } if(empty($this->data['user_id'])) { throw new ParamsException('用户ID不能为空', 'user_id'); } if(!empty($this->data['ret_url'])) { StrFilterHelper::fileUrl($this->data['ret_url']); } if(!empty($this->data['bg_ret_url'])) { StrFilterHelper::fileUrl($this->data['bg_ret_url']); } return $this->data; } }