diff --git a/wchat/base/Subject.php b/wchat/base/Subject.php index 2ebfb21..a457ed4 100644 --- a/wchat/base/Subject.php +++ b/wchat/base/Subject.php @@ -93,7 +93,7 @@ abstract class Subject extends Miniprogarampage ]; } - abstract public function getUrl(): string; + abstract public function getUrl(); /** * @return Result diff --git a/wchat/base/Template.php b/wchat/base/Template.php index b44ac22..e51731a 100644 --- a/wchat/base/Template.php +++ b/wchat/base/Template.php @@ -99,7 +99,7 @@ abstract class Template extends Miniprogarampage ]; } - abstract public function getUrl(): string; + abstract public function getUrl(); /** * @return Result diff --git a/wchat/common/Config.php b/wchat/common/Config.php index a810cfc..08a517c 100644 --- a/wchat/common/Config.php +++ b/wchat/common/Config.php @@ -118,7 +118,7 @@ class Config /** * @return string */ - public function getSslCa(): string + public function getSslCa() { return $this->ssl_ca; } @@ -136,7 +136,7 @@ class Config /** * @return string */ - public function getPort(): string + public function getPort() { return $this->port; } @@ -154,7 +154,7 @@ class Config /** * @return bool */ - public function isUsrSwoole(): bool + public function isUsrSwoole() { return $this->usrSwoole; } @@ -172,7 +172,7 @@ class Config /** * @return string */ - public function getAgent(): string + public function getAgent() { return $this->agent; } @@ -226,7 +226,7 @@ class Config /** * @return string */ - public function getAccessToken(): string + public function getAccessToken() { return $this->access_token; } @@ -378,7 +378,7 @@ class Config /** * @return string */ - public function getAppid(): string + public function getAppid() { return $this->appid; } @@ -386,7 +386,7 @@ class Config /** * @return string */ - public function getMchId(): string + public function getMchId() { return $this->mch_id; } @@ -394,7 +394,7 @@ class Config /** * @return string */ - public function getDeviceInfo(): string + public function getDeviceInfo() { return $this->device_info; } @@ -402,7 +402,7 @@ class Config /** * @return string */ - public function getNonceStr(): string + public function getNonceStr() { return $this->nonce_str; } @@ -410,7 +410,7 @@ class Config /** * @return string */ - public function getBody(): string + public function getBody() { return $this->body; } @@ -418,7 +418,7 @@ class Config /** * @return string */ - public function getOutTradeNo(): string + public function getOutTradeNo() { return $this->out_trade_no; } @@ -426,7 +426,7 @@ class Config /** * @return int */ - public function getTotalFee(): int + public function getTotalFee() { return $this->total_fee; } @@ -434,7 +434,7 @@ class Config /** * @return string */ - public function getSpbillCreateIp(): string + public function getSpbillCreateIp() { return $this->spbill_create_ip; } @@ -442,7 +442,7 @@ class Config /** * @return string */ - public function getNotifyUrl(): string + public function getNotifyUrl() { return $this->notify_url; } @@ -450,7 +450,7 @@ class Config /** * @return string */ - public function getTradeType(): string + public function getTradeType() { return $this->trade_type; } @@ -458,7 +458,7 @@ class Config /** * @return string */ - public function getSignType(): string + public function getSignType() { return $this->sign_type; } @@ -466,7 +466,7 @@ class Config /** * @return string */ - public function getMchHost(): string + public function getMchHost() { return $this->mch_host; } @@ -474,7 +474,7 @@ class Config /** * @return string */ - public function getAppsecret(): string + public function getAppsecret() { return $this->appsecret; } @@ -482,7 +482,7 @@ class Config /** * @return string */ - public function getRemoteAddr(): string + public function getRemoteAddr() { return $this->remote_addr; } @@ -490,7 +490,7 @@ class Config /** * @return string */ - public function getSslCert(): string + public function getSslCert() { return $this->ssl_cert; } @@ -498,7 +498,7 @@ class Config /** * @return string */ - public function getSslKey(): string + public function getSslKey() { return $this->ssl_key; } @@ -506,7 +506,7 @@ class Config /** * @return string */ - public function getKey(): string + public function getKey() { return $this->key; } diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 6c1688d..b7279e6 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -113,7 +113,7 @@ class HttpClient /** * @return bool */ - public function hasSslCertFile(): bool + public function hasSslCertFile() { return !empty($this->ssl_cert_file) && file_exists($this->ssl_cert_file); } @@ -121,7 +121,7 @@ class HttpClient /** * @return bool */ - public function hasSslKeyFile(): bool + public function hasSslKeyFile() { return !empty($this->ssl_key_file) && file_exists($this->ssl_key_file); } diff --git a/wchat/qq/Redhat.php b/wchat/qq/Redhat.php index 286767c..33f2056 100644 --- a/wchat/qq/Redhat.php +++ b/wchat/qq/Redhat.php @@ -38,7 +38,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getKey(): string + public function getKey() { return $this->key; } @@ -56,7 +56,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getSignType(): string + public function getSignType() { return $this->signType; } @@ -74,7 +74,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getCharset(): string + public function getCharset() { return $this->charset; } @@ -92,7 +92,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getNonceStr(): string + public function getNonceStr() { return $this->nonce_str; } @@ -110,7 +110,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getSign(): string + public function getSign() { return $this->sign; } @@ -128,7 +128,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getMchBillno(): string + public function getMchBillno() { if (empty($this->mch_billno)) { return '1559179381' . date('Ymd') . mt_rand(11, 99) . date('His') . mt_rand(11, 99); @@ -149,7 +149,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getMchId(): string + public function getMchId() { return $this->mch_id; } @@ -167,7 +167,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getMchName(): string + public function getMchName() { return $this->mch_name; } @@ -185,7 +185,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getQqappid(): string + public function getQqappid() { return $this->qqappid; } @@ -203,7 +203,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getReOpenid(): string + public function getReOpenid() { return $this->re_openid; } @@ -221,7 +221,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getTotalAmount(): string + public function getTotalAmount() { return $this->total_amount; } @@ -239,7 +239,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getTotalNum(): string + public function getTotalNum() { return $this->total_num; } @@ -257,7 +257,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getWishing(): string + public function getWishing() { return $this->wishing; } @@ -275,7 +275,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getActName(): string + public function getActName() { return $this->act_name; } @@ -293,7 +293,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getIconId(): string + public function getIconId() { return $this->icon_id; } @@ -311,7 +311,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getBannerId(): string + public function getBannerId() { return $this->banner_id; } @@ -329,7 +329,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getNotifyUrl(): string + public function getNotifyUrl() { return $this->notify_url; } @@ -347,7 +347,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getNotSendMsg(): string + public function getNotSendMsg() { return $this->not_send_msg; } @@ -365,7 +365,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getMinValue(): string + public function getMinValue() { return $this->min_value; } @@ -383,7 +383,7 @@ class Redhat extends SmallProgram /** * @return string */ - public function getMaxValue(): string + public function getMaxValue() { return $this->max_value; } diff --git a/wchat/qq/Subject.php b/wchat/qq/Subject.php index 4202fe7..b68552d 100644 --- a/wchat/qq/Subject.php +++ b/wchat/qq/Subject.php @@ -18,7 +18,7 @@ class Subject extends \wchat\base\Subject /** * @return string */ - public function getUrl(): string + public function getUrl() { return $this->sendUrl; } diff --git a/wchat/qq/Template.php b/wchat/qq/Template.php index b2f3677..30b38e8 100644 --- a/wchat/qq/Template.php +++ b/wchat/qq/Template.php @@ -20,7 +20,7 @@ class Template extends \wchat\base\Template private $sendUrl = 'https://api.q.qq.com/api/json/template/send'; - public function getUrl(): string + public function getUrl() { return $this->sendUrl; } diff --git a/wchat/wx/ContentAsyncCheck.php b/wchat/wx/ContentAsyncCheck.php index db02aa3..ad313ee 100644 --- a/wchat/wx/ContentAsyncCheck.php +++ b/wchat/wx/ContentAsyncCheck.php @@ -24,7 +24,7 @@ class ContentAsyncCheck /** * @return string */ - public function getToUserName(): string + public function getToUserName() { return $this->_ToUserName; } @@ -32,7 +32,7 @@ class ContentAsyncCheck /** * @return string */ - public function getFromUserName(): string + public function getFromUserName() { return $this->_FromUserName; } @@ -40,7 +40,7 @@ class ContentAsyncCheck /** * @return string */ - public function getCreateTime(): string + public function getCreateTime() { return $this->_CreateTime; } @@ -48,7 +48,7 @@ class ContentAsyncCheck /** * @return string */ - public function getMsgType(): string + public function getMsgType() { return $this->_MsgType; } @@ -56,7 +56,7 @@ class ContentAsyncCheck /** * @return string */ - public function getEvent(): string + public function getEvent() { return $this->_Event; } @@ -64,7 +64,7 @@ class ContentAsyncCheck /** * @return string */ - public function getIsrisky(): string + public function getIsrisky() { return $this->_isrisky; } @@ -72,7 +72,7 @@ class ContentAsyncCheck /** * @return string */ - public function getExtraInfoJson(): string + public function getExtraInfoJson() { return $this->_extra_info_json; } @@ -80,7 +80,7 @@ class ContentAsyncCheck /** * @return string */ - public function getAppid(): string + public function getAppid() { return $this->_appid; } @@ -88,7 +88,7 @@ class ContentAsyncCheck /** * @return string */ - public function getTraceId(): string + public function getTraceId() { return $this->_trace_id; } @@ -96,7 +96,7 @@ class ContentAsyncCheck /** * @return string */ - public function getStatusCode(): string + public function getStatusCode() { return $this->_status_code; } diff --git a/wchat/wx/Subject.php b/wchat/wx/Subject.php index 7b8534f..30eaa66 100644 --- a/wchat/wx/Subject.php +++ b/wchat/wx/Subject.php @@ -18,7 +18,7 @@ class Subject extends \wchat\base\Subject /** * @return string */ - public function getUrl(): string + public function getUrl() { return $this->sendUrl; } diff --git a/wchat/wx/Template.php b/wchat/wx/Template.php index d3acf34..f681962 100644 --- a/wchat/wx/Template.php +++ b/wchat/wx/Template.php @@ -16,7 +16,7 @@ class Template extends \wchat\base\Template { private string $sendUrl = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send'; - public function getUrl(): string + public function getUrl() { return $this->sendUrl; }