ComposerUpate

This commit is contained in:
Anyon 2020-08-14 13:53:33 +08:00
parent 5b489741bb
commit 85ab26b93f
6 changed files with 26 additions and 397 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"sources":["console.layout.less"],"names":[],"mappings":";AACA,aACE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAJJ,aAOE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAVJ,aAOE,cAKE;EACE,gBAAA;;AAbN,aAOE,cAKE,cAGE;EACE,kBAAA;;AAhBR,aAOE,cAKE,cAOE;EACE,YAAA;EACA,YAAA;EACA,iBAAA;EACA,0CAAA;EACA,gBAAA;;;AAOR;EACE,YAAA;EACA,mBAAA;;AAFF,aAIE;EAEE,uCAAA;EACA,2CAAA;;AAPJ,aAUE;AAVF,aAWE;EACE,UAAA;;AAZJ,aAeE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;EACA,2CAAA;EACA,4CAAA;;AAtBJ,aAeE,YASE;EACE,cAAA;EACA,gBAAA;;AA1BN,aA8BE;EACE,YAAA;EACA,iBAAA;;AAEA,aAJF,gBAIG;EACC,mBAAA;;AAnCN,aA8BE,gBAQE;EACE,WAAA;;AAvCN,aA8BE,gBAYE;EACE,SAAA;EACA,UAAA;EACA,YAAA;EACA,iBAAA;;AA9CN,aA8BE,gBAYE,iBAME;EACE,mBAAA;;AAGF,aAtBJ,gBAYE,iBAUG,WAAY;EACX,gBAAA;;AAGF,aA1BJ,gBAYE,iBAcG,WAAY,IAAI;EACf,WAAA;;AAzDR,aA8BE,gBAYE,iBAkBE,GAAG;EACD,UAAA;EACA,WAAA;EACA,kBAAA;EACA,6BAAA;;AAhER,aAqEE;AArEF,aAqEkB,gBAAe;EAC7B,aAAA;;AAtEJ,aAyEE,oBACE,KAAK;EACH,0CAAA;EACA,wCAAA;;;AAMN,aAEE,cACE;EACE,aAAA;;AAJN,aAEE,cAKE;EACE,WAAA;;AARN,aAEE,cASE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,SAGL;EACC,WAAA;EACA,gBAAA;;AAzGV,eAuCE,eAuEE;EACE,WAAA;EACA,YAAA;EACA,8BAAA;EACA,sDAAA;;AAlHN,eAuCE,eA8EE;AArHJ,eAuCE,eA8Ea;EACT,qBAAA;EACA,sBAAA;;AAvHN,eAuCE,eAmFE;EACE,UAAA;EACA,WAAA;EACA,iBAAA;EACA,yDAAA;;AA9HN,eAuCE,eA0FE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,cAAA;EACA,kBAAA;EACA,yBAAA;EACA,yBAAA;;AAxIN,eAuCE,eA0FE,UASE;AA1IN,eAuCE,eA0FE,UASM,GAAG;EACL,WAAA;EACA,UAAA;EACA,WAAA;EACA,cAAA;EACA,WAAA;;AA/IR,eAuCE,eA0FE,UAiBE,GAAG,GACD;EACE,cAAA;EACA,sCAAA;;AAEA,eAhHR,eA0FE,UAiBE,GAAG,GACD,EAIG;EACC,mBAAA;EACA,gCAAA;;AAIJ,eAtHN,eA0FE,UAiBE,GAAG,GAWA,WAAY,EAAC;EACZ,yBAAA;;AA9JV,eAuCE,eA4HE;EACE,SAAA;EACA,kBAAA;EACA,iBAAA;;AAtKN,eAuCE,eAkIE;AAzKJ,eAuCE,eAkIa;EACT,QAAA;EACA,SAAA;EACA,WAAA;EACA,qBAAA;EACA,8BAAA;EACA,sBAAA;EACA,uBAAA;;AAhLN,eAuCE,eA4IE;EACE,UAAA;EACA,YAAA;EACA,yBAAA;;AAtLN,eAuCE,eAkJE;EACE,UAAA;EACA,YAAA;EACA,yBAAA","file":"console.layout.css"}
{"version":3,"sources":["console.layout.less"],"names":[],"mappings":"AACA,aACE,aACE,QAAA,CACA,QAAA,CACA,cAJJ,aAOE,aACE,QAAA,CACA,QAAA,CACA,cAVJ,aAOE,YAKE,aACE,gBAbN,aAOE,YAKE,YAGE,kBACE,kBAhBR,aAOE,YAKE,YAOE,oBACE,WAAA,CACA,WAAA,CACA,gBAAA,CACA,sCAAA,CACA,gBAOR,cACE,WAAA,CAC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A,oBAAA,CACA,6BAAA,CACA,qBAAA,CACA,uBAhLN,eAuCE,eA4IE,WACE,SAAA,CACA,WAAA,CACA,yBAtLN,eAuCE,eAkJE,YACE,SAAA,CACA,WAAA,CACA","file":"console.layout.css"}

View File

@ -177,17 +177,17 @@
},
{
"name": "symfony/options-resolver",
"version": "v3.4.42",
"version_normalized": "3.4.42.0",
"version": "v3.4.43",
"version_normalized": "3.4.43.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/options-resolver.git",
"reference": "3b9fe6db7fe3694307d182dd73983584af77d5fd"
"reference": "0edf31d2e34f4adb72dd4d2e4a8aa21f84b943e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/3b9fe6db7fe3694307d182dd73983584af77d5fd",
"reference": "3b9fe6db7fe3694307d182dd73983584af77d5fd",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/0edf31d2e34f4adb72dd4d2e4a8aa21f84b943e5",
"reference": "0edf31d2e34f4adb72dd4d2e4a8aa21f84b943e5",
"shasum": "",
"mirrors": [
{
@ -199,7 +199,7 @@
"require": {
"php": "^5.5.9|>=7.0.8"
},
"time": "2020-05-21T13:02:25+00:00",
"time": "2020-07-08T17:07:26+00:00",
"type": "library",
"extra": {
"branch-alias": {
@ -460,17 +460,17 @@
},
{
"name": "zoujingli/wechat-developer",
"version": "v1.2.22",
"version_normalized": "1.2.22.0",
"version": "v1.2.23",
"version_normalized": "1.2.23.0",
"source": {
"type": "git",
"url": "https://github.com/zoujingli/WeChatDeveloper.git",
"reference": "7eb7f6a2d8aa4a105208c7dff6428dcecd0c7059"
"reference": "f070dd076a4137ff4e86600b63d1ccfe2f744a92"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/7eb7f6a2d8aa4a105208c7dff6428dcecd0c7059",
"reference": "7eb7f6a2d8aa4a105208c7dff6428dcecd0c7059",
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/f070dd076a4137ff4e86600b63d1ccfe2f744a92",
"reference": "f070dd076a4137ff4e86600b63d1ccfe2f744a92",
"shasum": "",
"mirrors": [
{
@ -490,7 +490,7 @@
"ext-xml": "*",
"php": ">=5.4"
},
"time": "2020-07-04T07:24:41+00:00",
"time": "2020-07-20T06:55:26+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {

View File

@ -1080,6 +1080,6 @@ class OptionsResolver implements Options
return null;
}
return method_exists($type, 'getName') ? $type->getName() : (string) $type;
return $type instanceof \ReflectionNamedType ? $type->getName() : (string) $type;
}
}

View File

@ -86,7 +86,7 @@ class We
* 定义当前版本
* @var string
*/
const VERSION = '1.2.22';
const VERSION = '1.2.23';
/**
* 静态配置

View File

@ -94,7 +94,7 @@ class BasicWeChat
}
/**
* 获取访问accessToken
* 获取访问 AccessToken
* @return string
* @throws \WeChat\Exceptions\InvalidResponseException
* @throws \WeChat\Exceptions\LocalCacheException
@ -166,15 +166,15 @@ class BasicWeChat
{
try {
return Tools::json2arr(Tools::get($url));
} catch (InvalidResponseException $e) {
} catch (InvalidResponseException $exception) {
if (isset($this->currentMethod['method']) && empty($this->isTry)) {
if (in_array($e->getCode(), ['40014', '40001', '41001', '42001'])) {
if (in_array($exception->getCode(), ['40014', '40001', '41001', '42001'])) {
$this->delAccessToken();
$this->isTry = true;
return call_user_func_array([$this, $this->currentMethod['method']], $this->currentMethod['arguments']);
}
}
throw new InvalidResponseException($e->getMessage(), $e->getCode());
throw new InvalidResponseException($exception->getMessage(), $exception->getCode());
}
}
@ -190,13 +190,15 @@ class BasicWeChat
protected function httpPostForJson($url, array $data, $buildToJson = true)
{
try {
return Tools::json2arr(Tools::post($url, $buildToJson ? Tools::arr2json($data) : $data));
} catch (InvalidResponseException $e) {
if (!$this->isTry && in_array($e->getCode(), ['40014', '40001', '41001', '42001'])) {
$options = [];
if ($buildToJson) $options['headers'] = ['Content-Type: application/json'];
return Tools::json2arr(Tools::post($url, $buildToJson ? Tools::arr2json($data) : $data, $options));
} catch (InvalidResponseException $exception) {
if (!$this->isTry && in_array($exception->getCode(), ['40014', '40001', '41001', '42001'])) {
[$this->delAccessToken(), $this->isTry = true];
return call_user_func_array([$this, $this->currentMethod['method']], $this->currentMethod['arguments']);
}
throw new InvalidResponseException($e->getMessage(), $e->getCode());
throw new InvalidResponseException($exception->getMessage(), $exception->getCode());
}
}