| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?php
- namespace addons\JoinPay\common\logic\entity;
- /**
- * 响应参数类
- * Class Response
- * @package entity
- */
- class Response {
- private $resp_code;
- private $biz_code;
- private $biz_msg;
- private $mch_no;
- private $data;
- private $rand_str;
- private $sign_type;
- private $sign;
- private $sec_key;
- /**
- * @return mixed
- */
- public function getRespCode()
- {
- return $this->resp_code;
- }
- /**
- * @param mixed $resp_code
- */
- public function setRespCode($resp_code): void
- {
- $this->resp_code = $resp_code;
- }
- /**
- * @return mixed
- */
- public function getBizCode()
- {
- return $this->biz_code;
- }
- /**
- * @param mixed $biz_code
- */
- public function setBizCode($biz_code): void
- {
- $this->biz_code = $biz_code;
- }
- /**
- * @return mixed
- */
- public function getBizMsg()
- {
- return $this->biz_msg;
- }
- /**
- * @param mixed $biz_msg
- */
- public function setBizMsg($biz_msg): void
- {
- $this->biz_msg = $biz_msg;
- }
- /**
- * @return mixed
- */
- public function getMchNo()
- {
- return $this->mch_no;
- }
- /**
- * @param mixed $mch_no
- */
- public function setMchNo($mch_no): void
- {
- $this->mch_no = $mch_no;
- }
- /**
- * @return mixed
- */
- public function getData()
- {
- return $this->data;
- }
- /**
- * @param mixed $data
- */
- public function setData($data): void
- {
- $this->data = $data;
- }
- /**
- * @return mixed
- */
- public function getRandStr()
- {
- return $this->rand_str;
- }
- /**
- * @param mixed $rand_str
- */
- public function setRandStr($rand_str): void
- {
- $this->rand_str = $rand_str;
- }
- /**
- * @return mixed
- */
- public function getSignType()
- {
- return $this->sign_type;
- }
- /**
- * @param mixed $sign_type
- */
- public function setSignType($sign_type): void
- {
- $this->sign_type = $sign_type;
- }
- /**
- * @return mixed
- */
- public function getSign()
- {
- return $this->sign;
- }
- /**
- * @param mixed $sign
- */
- public function setSign($sign): void
- {
- $this->sign = $sign;
- }
- /**
- * @return mixed
- */
- public function getSecKey()
- {
- return $this->sec_key;
- }
- /**
- * @param mixed $sec_key
- */
- public function setSecKey($sec_key): void
- {
- $this->sec_key = $sec_key;
- }
- /**
- * 判断本次请求是否成功
- * @return bool
- */
- public function isSuccess(): bool
- {
- return "SUCCESS" === $this->resp_code && "JS000000" === $this->biz_code;
- }
- }
|