add clear

This commit is contained in:
2021-04-06 15:15:37 +08:00
parent 092e355850
commit 80abb3a20a
10 changed files with 60 additions and 60 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ abstract class Subject extends Miniprogarampage
]; ];
} }
abstract public function getUrl(): string; abstract public function getUrl();
/** /**
* @return Result * @return Result
+1 -1
View File
@@ -99,7 +99,7 @@ abstract class Template extends Miniprogarampage
]; ];
} }
abstract public function getUrl(): string; abstract public function getUrl();
/** /**
* @return Result * @return Result
+22 -22
View File
@@ -118,7 +118,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getSslCa(): string public function getSslCa()
{ {
return $this->ssl_ca; return $this->ssl_ca;
} }
@@ -136,7 +136,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getPort(): string public function getPort()
{ {
return $this->port; return $this->port;
} }
@@ -154,7 +154,7 @@ class Config
/** /**
* @return bool * @return bool
*/ */
public function isUsrSwoole(): bool public function isUsrSwoole()
{ {
return $this->usrSwoole; return $this->usrSwoole;
} }
@@ -172,7 +172,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getAgent(): string public function getAgent()
{ {
return $this->agent; return $this->agent;
} }
@@ -226,7 +226,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getAccessToken(): string public function getAccessToken()
{ {
return $this->access_token; return $this->access_token;
} }
@@ -378,7 +378,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getAppid(): string public function getAppid()
{ {
return $this->appid; return $this->appid;
} }
@@ -386,7 +386,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getMchId(): string public function getMchId()
{ {
return $this->mch_id; return $this->mch_id;
} }
@@ -394,7 +394,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getDeviceInfo(): string public function getDeviceInfo()
{ {
return $this->device_info; return $this->device_info;
} }
@@ -402,7 +402,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getNonceStr(): string public function getNonceStr()
{ {
return $this->nonce_str; return $this->nonce_str;
} }
@@ -410,7 +410,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getBody(): string public function getBody()
{ {
return $this->body; return $this->body;
} }
@@ -418,7 +418,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getOutTradeNo(): string public function getOutTradeNo()
{ {
return $this->out_trade_no; return $this->out_trade_no;
} }
@@ -426,7 +426,7 @@ class Config
/** /**
* @return int * @return int
*/ */
public function getTotalFee(): int public function getTotalFee()
{ {
return $this->total_fee; return $this->total_fee;
} }
@@ -434,7 +434,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getSpbillCreateIp(): string public function getSpbillCreateIp()
{ {
return $this->spbill_create_ip; return $this->spbill_create_ip;
} }
@@ -442,7 +442,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getNotifyUrl(): string public function getNotifyUrl()
{ {
return $this->notify_url; return $this->notify_url;
} }
@@ -450,7 +450,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getTradeType(): string public function getTradeType()
{ {
return $this->trade_type; return $this->trade_type;
} }
@@ -458,7 +458,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getSignType(): string public function getSignType()
{ {
return $this->sign_type; return $this->sign_type;
} }
@@ -466,7 +466,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getMchHost(): string public function getMchHost()
{ {
return $this->mch_host; return $this->mch_host;
} }
@@ -474,7 +474,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getAppsecret(): string public function getAppsecret()
{ {
return $this->appsecret; return $this->appsecret;
} }
@@ -482,7 +482,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getRemoteAddr(): string public function getRemoteAddr()
{ {
return $this->remote_addr; return $this->remote_addr;
} }
@@ -490,7 +490,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getSslCert(): string public function getSslCert()
{ {
return $this->ssl_cert; return $this->ssl_cert;
} }
@@ -498,7 +498,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getSslKey(): string public function getSslKey()
{ {
return $this->ssl_key; return $this->ssl_key;
} }
@@ -506,7 +506,7 @@ class Config
/** /**
* @return string * @return string
*/ */
public function getKey(): string public function getKey()
{ {
return $this->key; return $this->key;
} }
+2 -2
View File
@@ -113,7 +113,7 @@ class HttpClient
/** /**
* @return bool * @return bool
*/ */
public function hasSslCertFile(): bool public function hasSslCertFile()
{ {
return !empty($this->ssl_cert_file) && file_exists($this->ssl_cert_file); return !empty($this->ssl_cert_file) && file_exists($this->ssl_cert_file);
} }
@@ -121,7 +121,7 @@ class HttpClient
/** /**
* @return bool * @return bool
*/ */
public function hasSslKeyFile(): bool public function hasSslKeyFile()
{ {
return !empty($this->ssl_key_file) && file_exists($this->ssl_key_file); return !empty($this->ssl_key_file) && file_exists($this->ssl_key_file);
} }
+20 -20
View File
@@ -38,7 +38,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getKey(): string public function getKey()
{ {
return $this->key; return $this->key;
} }
@@ -56,7 +56,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getSignType(): string public function getSignType()
{ {
return $this->signType; return $this->signType;
} }
@@ -74,7 +74,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getCharset(): string public function getCharset()
{ {
return $this->charset; return $this->charset;
} }
@@ -92,7 +92,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getNonceStr(): string public function getNonceStr()
{ {
return $this->nonce_str; return $this->nonce_str;
} }
@@ -110,7 +110,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getSign(): string public function getSign()
{ {
return $this->sign; return $this->sign;
} }
@@ -128,7 +128,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getMchBillno(): string public function getMchBillno()
{ {
if (empty($this->mch_billno)) { if (empty($this->mch_billno)) {
return '1559179381' . date('Ymd') . mt_rand(11, 99) . date('His') . mt_rand(11, 99); return '1559179381' . date('Ymd') . mt_rand(11, 99) . date('His') . mt_rand(11, 99);
@@ -149,7 +149,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getMchId(): string public function getMchId()
{ {
return $this->mch_id; return $this->mch_id;
} }
@@ -167,7 +167,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getMchName(): string public function getMchName()
{ {
return $this->mch_name; return $this->mch_name;
} }
@@ -185,7 +185,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getQqappid(): string public function getQqappid()
{ {
return $this->qqappid; return $this->qqappid;
} }
@@ -203,7 +203,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getReOpenid(): string public function getReOpenid()
{ {
return $this->re_openid; return $this->re_openid;
} }
@@ -221,7 +221,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getTotalAmount(): string public function getTotalAmount()
{ {
return $this->total_amount; return $this->total_amount;
} }
@@ -239,7 +239,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getTotalNum(): string public function getTotalNum()
{ {
return $this->total_num; return $this->total_num;
} }
@@ -257,7 +257,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getWishing(): string public function getWishing()
{ {
return $this->wishing; return $this->wishing;
} }
@@ -275,7 +275,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getActName(): string public function getActName()
{ {
return $this->act_name; return $this->act_name;
} }
@@ -293,7 +293,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getIconId(): string public function getIconId()
{ {
return $this->icon_id; return $this->icon_id;
} }
@@ -311,7 +311,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getBannerId(): string public function getBannerId()
{ {
return $this->banner_id; return $this->banner_id;
} }
@@ -329,7 +329,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getNotifyUrl(): string public function getNotifyUrl()
{ {
return $this->notify_url; return $this->notify_url;
} }
@@ -347,7 +347,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getNotSendMsg(): string public function getNotSendMsg()
{ {
return $this->not_send_msg; return $this->not_send_msg;
} }
@@ -365,7 +365,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getMinValue(): string public function getMinValue()
{ {
return $this->min_value; return $this->min_value;
} }
@@ -383,7 +383,7 @@ class Redhat extends SmallProgram
/** /**
* @return string * @return string
*/ */
public function getMaxValue(): string public function getMaxValue()
{ {
return $this->max_value; return $this->max_value;
} }
+1 -1
View File
@@ -18,7 +18,7 @@ class Subject extends \wchat\base\Subject
/** /**
* @return string * @return string
*/ */
public function getUrl(): string public function getUrl()
{ {
return $this->sendUrl; return $this->sendUrl;
} }
+1 -1
View File
@@ -20,7 +20,7 @@ class Template extends \wchat\base\Template
private $sendUrl = 'https://api.q.qq.com/api/json/template/send'; private $sendUrl = 'https://api.q.qq.com/api/json/template/send';
public function getUrl(): string public function getUrl()
{ {
return $this->sendUrl; return $this->sendUrl;
} }
+10 -10
View File
@@ -24,7 +24,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getToUserName(): string public function getToUserName()
{ {
return $this->_ToUserName; return $this->_ToUserName;
} }
@@ -32,7 +32,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getFromUserName(): string public function getFromUserName()
{ {
return $this->_FromUserName; return $this->_FromUserName;
} }
@@ -40,7 +40,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getCreateTime(): string public function getCreateTime()
{ {
return $this->_CreateTime; return $this->_CreateTime;
} }
@@ -48,7 +48,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getMsgType(): string public function getMsgType()
{ {
return $this->_MsgType; return $this->_MsgType;
} }
@@ -56,7 +56,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getEvent(): string public function getEvent()
{ {
return $this->_Event; return $this->_Event;
} }
@@ -64,7 +64,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getIsrisky(): string public function getIsrisky()
{ {
return $this->_isrisky; return $this->_isrisky;
} }
@@ -72,7 +72,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getExtraInfoJson(): string public function getExtraInfoJson()
{ {
return $this->_extra_info_json; return $this->_extra_info_json;
} }
@@ -80,7 +80,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getAppid(): string public function getAppid()
{ {
return $this->_appid; return $this->_appid;
} }
@@ -88,7 +88,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getTraceId(): string public function getTraceId()
{ {
return $this->_trace_id; return $this->_trace_id;
} }
@@ -96,7 +96,7 @@ class ContentAsyncCheck
/** /**
* @return string * @return string
*/ */
public function getStatusCode(): string public function getStatusCode()
{ {
return $this->_status_code; return $this->_status_code;
} }
+1 -1
View File
@@ -18,7 +18,7 @@ class Subject extends \wchat\base\Subject
/** /**
* @return string * @return string
*/ */
public function getUrl(): string public function getUrl()
{ {
return $this->sendUrl; return $this->sendUrl;
} }
+1 -1
View File
@@ -16,7 +16,7 @@ class Template extends \wchat\base\Template
{ {
private string $sendUrl = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send'; private string $sendUrl = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send';
public function getUrl(): string public function getUrl()
{ {
return $this->sendUrl; return $this->sendUrl;
} }