add clear
This commit is contained in:
@@ -93,7 +93,7 @@ abstract class Subject extends Miniprogarampage
|
||||
];
|
||||
}
|
||||
|
||||
abstract public function getUrl(): string;
|
||||
abstract public function getUrl();
|
||||
|
||||
/**
|
||||
* @return Result
|
||||
|
||||
@@ -99,7 +99,7 @@ abstract class Template extends Miniprogarampage
|
||||
];
|
||||
}
|
||||
|
||||
abstract public function getUrl(): string;
|
||||
abstract public function getUrl();
|
||||
|
||||
/**
|
||||
* @return Result
|
||||
|
||||
+22
-22
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
+20
-20
@@ -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;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Subject extends \wchat\base\Subject
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl(): string
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->sendUrl;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Subject extends \wchat\base\Subject
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl(): string
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->sendUrl;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user