mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
ComposerUpdate
This commit is contained in:
parent
0a41edfa17
commit
28a4217a73
@ -38,6 +38,7 @@ class MediaService
|
|||||||
public static function news($id, $where = [])
|
public static function news($id, $where = [])
|
||||||
{
|
{
|
||||||
$data = Db::name('WechatNews')->where(['id' => $id])->where($where)->find();
|
$data = Db::name('WechatNews')->where(['id' => $id])->where($where)->find();
|
||||||
|
if (empty($data)) return [];
|
||||||
list($data['articles'], $articleIds) = [[], explode(',', $data['article_id'])];
|
list($data['articles'], $articleIds) = [[], explode(',', $data['article_id'])];
|
||||||
$articles = Db::name('WechatNewsArticle')->whereIn('id', $articleIds)->select();
|
$articles = Db::name('WechatNewsArticle')->whereIn('id', $articleIds)->select();
|
||||||
foreach ($articleIds as $article_id) foreach ($articles as $article) {
|
foreach ($articleIds as $article_id) foreach ($articles as $article) {
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,218 +1 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";body,html{height:100%;display:block}body{background:url("../img/login/bg1.jpg") no-repeat center center;background-size:cover}.login-container{height:100%}.login-container .header{top:0;left:0;width:100%;height:47px;position:absolute;text-shadow:#000 .1em .1em .1em}.login-container .header .title{color:#fff;float:left;font-size:18px;line-height:47px;text-indent:40px;letter-spacing:1px}.login-container .header a,.login-container .header a:focus,.login-container .header a:hover{color:#fff;letter-spacing:1px;text-decoration:none}.login-container .header ul{float:right}.login-container .header ul li{float:left;line-height:47px;margin-left:10px}.login-container form{top:50%;left:50%;width:300px;position:absolute;margin-top:-250px;margin-left:-150px}.login-container form h2{color:#fff;padding:20px 0;font-size:25px;text-align:center;font-weight:700;letter-spacing:3px;text-shadow:#000 .05em .05em .05em}.login-container form ul li{position:relative;margin-top:20px;text-shadow:#000 .1em .1em .1em}.login-container form ul li.verify label{width:200px}.login-container form ul li.verify input.layui-input{text-transform:uppercase}.login-container form ul li.verify img{width:95px;height:44px;cursor:pointer;position:absolute;margin-left:5px;border-radius:5px;box-shadow:0 2px 5px 0 rgba(0,0,0,0.1)}.login-container form ul li i.layui-icon{color:#fff;font-size:18px;position:absolute;padding:14px 15px 13px 20px}.login-container form ul li input{color:#fff;height:45px;padding:0 15px;font-size:14px;line-height:1em;text-indent:35px;border-radius:6px;letter-spacing:1px;background:rgba(0,0,0,0.12);text-shadow:#000 .1em .1em .1em;-webkit-text-fill-color:#fff !important;box-shadow:0 2px 3px 0 rgba(0,0,0,0.3) inset !important}.login-container form ul li input:hover,.login-container form ul li input:focus,.login-container form ul li input:active,.login-container form ul li input:-webkit-autofill,.login-container form ul li input:-webkit-autofill:hover,.login-container form ul li input:-webkit-autofill:focus,.login-container form ul li input:-webkit-autofill:active{text-shadow:#000 .1em .1em .1em;box-shadow:0 2px 3px 0 rgba(0,0,0,0.3) inset !important;-webkit-text-fill-color:#fff !important;-webkit-transition-delay:9999s !important;-webkit-transition:color 9999s ease-out,background-color 9999s ease-out !important}.login-container form ul li span{letter-spacing:1px;color:#ff0 !important}.login-container form ul li button{color:#333 !important;height:45px !important;background:#fff !important;border-radius:4px !important;letter-spacing:1px !important;box-shadow:0 15px 30px 0 hsla(0,0%,100%,0.25) inset,0 2px 7px 0 rgba(0,0,0,0.2)}.login-container .footer{left:0;bottom:0;color:#fff;width:100%;position:absolute;text-align:center;line-height:30px;padding-bottom:10px;text-shadow:#000 .1em .1em .1em}.login-container .footer a,.login-container .footer span{color:#fff}.login-container .footer a:hover{color:#ccc}#supersized{top:0;left:0;width:100%;height:100%;z-index:-999;display:block;position:fixed;overflow:hidden}#supersized img{border:0;width:auto;height:auto;display:none;outline:0;position:relative;max-width:none !important}#supersized.speed img{image-rendering:-moz-crisp-edges;-ms-interpolation-mode:nearest-neighbor}#supersized.quality img{image-rendering:optimizeQuality;-ms-interpolation-mode:bicubic}#supersized a,#supersized li{width:100%;height:100%;display:block;cursor:default}#supersized li{top:0;left:0;z-index:-30;position:fixed;overflow:hidden;list-style:none}#supersized li.prevslide{z-index:-20}#supersized li.prevslide img{display:inline}#supersized li.activeslide{z-index:-10}#supersized li.activeslide img{display:inline}#supersized li.image-loading{width:100%;height:100%;background:url(../../plugs/supersized/progress.gif) no-repeat center center}#supersized li.image-loading img{visibility:hidden}#supersized-loader{top:50%;left:50%;z-index:0;width:60px;height:60px;position:absolute;text-indent:-999em;margin:-30px 0 0 -30px;background:url(../../plugs/supersized/progress.gif) no-repeat center center}/*# sourceMappingURL=login.css.map */
|
||||||
body,
|
|
||||||
html {
|
|
||||||
height: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
background: url("../img/login/bg1.jpg") no-repeat center center;
|
|
||||||
background-size: cover;
|
|
||||||
}
|
|
||||||
.login-container {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.login-container .header {
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 47px;
|
|
||||||
position: absolute;
|
|
||||||
text-shadow: #000 0.1em 0.1em 0.1em;
|
|
||||||
}
|
|
||||||
.login-container .header .title {
|
|
||||||
color: #fff;
|
|
||||||
float: left;
|
|
||||||
font-size: 18px;
|
|
||||||
line-height: 47px;
|
|
||||||
text-indent: 40px;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
|
||||||
.login-container .header a,
|
|
||||||
.login-container .header a:focus,
|
|
||||||
.login-container .header a:hover {
|
|
||||||
color: #fff;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.login-container .header ul {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.login-container .header ul li {
|
|
||||||
float: left;
|
|
||||||
line-height: 47px;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
.login-container form {
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
width: 300px;
|
|
||||||
position: absolute;
|
|
||||||
margin-top: -250px;
|
|
||||||
margin-left: -150px;
|
|
||||||
}
|
|
||||||
.login-container form h2 {
|
|
||||||
color: #fff;
|
|
||||||
padding: 20px 0;
|
|
||||||
font-size: 25px;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 3px;
|
|
||||||
text-shadow: #000 0.05em 0.05em 0.05em;
|
|
||||||
}
|
|
||||||
.login-container form ul li {
|
|
||||||
position: relative;
|
|
||||||
margin-top: 20px;
|
|
||||||
text-shadow: #000 0.1em 0.1em 0.1em;
|
|
||||||
}
|
|
||||||
.login-container form ul li.verify label {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
.login-container form ul li.verify input.layui-input {
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
.login-container form ul li.verify img {
|
|
||||||
width: 95px;
|
|
||||||
height: 44px;
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
margin-left: 5px;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
.login-container form ul li i.layui-icon {
|
|
||||||
color: #fff;
|
|
||||||
font-size: 18px;
|
|
||||||
position: absolute;
|
|
||||||
padding: 14px 15px 13px 20px;
|
|
||||||
}
|
|
||||||
.login-container form ul li input {
|
|
||||||
color: #fff;
|
|
||||||
height: 45px;
|
|
||||||
padding: 0 15px;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1em;
|
|
||||||
text-indent: 35px;
|
|
||||||
border-radius: 6px;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
background: rgba(0, 0, 0, 0.12);
|
|
||||||
text-shadow: #000 0.1em 0.1em 0.1em;
|
|
||||||
-webkit-text-fill-color: #fff !important;
|
|
||||||
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.3) inset !important;
|
|
||||||
}
|
|
||||||
.login-container form ul li input:hover,
|
|
||||||
.login-container form ul li input:focus,
|
|
||||||
.login-container form ul li input:active,
|
|
||||||
.login-container form ul li input:-webkit-autofill,
|
|
||||||
.login-container form ul li input:-webkit-autofill:hover,
|
|
||||||
.login-container form ul li input:-webkit-autofill:focus,
|
|
||||||
.login-container form ul li input:-webkit-autofill:active {
|
|
||||||
text-shadow: #000 0.1em 0.1em 0.1em;
|
|
||||||
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.3) inset !important;
|
|
||||||
-webkit-text-fill-color: #fff !important;
|
|
||||||
-webkit-transition-delay: 9999s !important;
|
|
||||||
-webkit-transition: color 9999s ease-out, background-color 9999s ease-out !important;
|
|
||||||
}
|
|
||||||
.login-container form ul li span {
|
|
||||||
letter-spacing: 1px;
|
|
||||||
color: #ff0 !important;
|
|
||||||
}
|
|
||||||
.login-container form ul li button {
|
|
||||||
color: #333 !important;
|
|
||||||
height: 45px !important;
|
|
||||||
background: #fff !important;
|
|
||||||
border-radius: 4px !important;
|
|
||||||
letter-spacing: 1px !important;
|
|
||||||
box-shadow: 0 15px 30px 0 hsla(0, 0%, 100%, 0.25) inset, 0 2px 7px 0 rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
.login-container .footer {
|
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
color: #fff;
|
|
||||||
width: 100%;
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 30px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
text-shadow: #000 0.1em 0.1em 0.1em;
|
|
||||||
}
|
|
||||||
.login-container .footer a,
|
|
||||||
.login-container .footer span {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.login-container .footer a:hover {
|
|
||||||
color: #ccc;
|
|
||||||
}
|
|
||||||
#supersized {
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
z-index: -999;
|
|
||||||
display: block;
|
|
||||||
position: fixed;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
#supersized img {
|
|
||||||
border: 0;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
display: none;
|
|
||||||
outline: 0;
|
|
||||||
position: relative;
|
|
||||||
max-width: none !important;
|
|
||||||
}
|
|
||||||
#supersized.speed img {
|
|
||||||
image-rendering: -moz-crisp-edges;
|
|
||||||
-ms-interpolation-mode: nearest-neighbor;
|
|
||||||
}
|
|
||||||
#supersized.quality img {
|
|
||||||
image-rendering: optimizeQuality;
|
|
||||||
-ms-interpolation-mode: bicubic;
|
|
||||||
}
|
|
||||||
#supersized a,
|
|
||||||
#supersized li {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: block;
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
#supersized li {
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: -30;
|
|
||||||
position: fixed;
|
|
||||||
overflow: hidden;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
#supersized li.prevslide {
|
|
||||||
z-index: -20;
|
|
||||||
}
|
|
||||||
#supersized li.prevslide img {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
#supersized li.activeslide {
|
|
||||||
z-index: -10;
|
|
||||||
}
|
|
||||||
#supersized li.activeslide img {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
#supersized li.image-loading {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background: url(../../plugs/supersized/progress.gif) no-repeat center center;
|
|
||||||
}
|
|
||||||
#supersized li.image-loading img {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
#supersized-loader {
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
z-index: 0;
|
|
||||||
width: 60px;
|
|
||||||
height: 60px;
|
|
||||||
position: absolute;
|
|
||||||
text-indent: -999em;
|
|
||||||
margin: -30px 0 0 -30px;
|
|
||||||
background: url(../../plugs/supersized/progress.gif) no-repeat center center;
|
|
||||||
}
|
|
||||||
/*# sourceMappingURL=login.css.map */
|
|
@ -1 +1 @@
|
|||||||
{"version":3,"sources":["login.less"],"names":[],"mappings":"AAAA,SAAS;AAeT;AAAM;EACJ,YAAA;EACA,cAAA;;AAGF;EACE,gBAAgB,+CAAhB;EACA,sBAAA;;AAGF;EACE,YAAA;;AADF,gBAGE;EACE,MAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,mCAAA;;AATJ,gBAGE,QAQE;EACE,WAAA;EACA,WAAA;EACA,eAAA;EACA,iBAAA;EACA,iBAAA;EACA,mBAAA;;AAIA,gBAlBJ,QAiBE;AACK,gBAlBP,QAiBE,EACM;AAAQ,gBAlBhB,QAiBE,EACe;EACX,WAAA;EACA,mBAAA;EACA,qBAAA;;AAxBR,gBAGE,QAyBE;EACE,YAAA;;AA7BN,gBAGE,QAyBE,GAGE;EACE,WAAA;EACA,iBAAA;EACA,iBAAA;;AAlCR,gBAuCE;EACE,QAAA;EACA,SAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,mBAAA;;AA7CJ,gBAuCE,KAQE;EACE,WAAA;EACA,eAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,mBAAA;EACA,sCAAA;;AAtDN,gBAuCE,KAkBE,GAAG;EACD,kBAAA;EACA,gBAAA;EACA,mCAAA;;AAEA,gBAvBJ,KAkBE,GAAG,GAKA,OACC;EACE,YAAA;;AAFJ,gBAvBJ,KAkBE,GAAG,GAKA,OAKC,MAAK;EACH,yBAAA;;AANJ,gBAvBJ,KAkBE,GAAG,GAKA,OASC;EACE,WAAA;EACA,YAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,kBAAA;EACA,0CAAA;;AA9EV,gBAuCE,KAkBE,GAAG,GAyBD,EAAC;EACC,WAAA;EACA,eAAA;EACA,kBAAA;EACA,4BAAA;;AAtFR,gBAuCE,KAkBE,GAAG,GAgCD;EACE,WAAA;EACA,YAAA;EACA,eAAA;EACA,eAA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E;EACE,MAAA;EACA,OAAA;EACA,YAAA;EACA,eAAA;EACA,gBAAA;EACA,gBAAA;;AAEA,WARF,GAQG;EACC,YAAA;;AADF,WARF,GAQG,UAGC;EACE,eAAA;;AAIJ,WAhBF,GAgBG;EACC,YAAA;;AADF,WAhBF,GAgBG,YAGC;EACE,eAAA;;AAIJ,WAxBF,GAwBG;EACC,WAAA;EACA,YAAA;EACA,4EAAA;;AAHF,WAxBF,GAwBG,cAKC;EACE,kBAAA;;AAMR;EACE,QAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,mBAAA;EACA,uBAAA;EACA,4EAAA","file":"login.css"}
|
{"version":3,"sources":["login.less"],"names":[],"mappings":"AAAA,SAAS,QAeT,KAAM,KACJ,WAAA,CACA,cAGF,KACE,eAAgB,+CAAhB,CACA,sBAGF,iBACE,YADF,gBAGE,SACE,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,gCATJ,gBAGE,QAQE,QACE,UAAA,CACA,UAAA,CACA,cAAA,CACA,gBAAA,CACA,gBAAA,CACA,mBAIA,gBAlBJ,QAiBE,GACK,gBAlBP,QAiBE,EACM,OAAQ,gBAlBhB,QAiBE,EACe,OACX,UAAA,CACA,kBAAA,CACA,qBAxBR,gBAGE,QAyBE,IACE,YA7BN,gBAGE,QAyBE,GAGE,IACE,UAAA,CACA,gBAAA,CACA,iBAlCR,gBAuCE,MACE,OAAA,CACA,QAAA,CACA,WAAA,CACA,iBAAA,CACA,iBAAA,CACA,mBA7CJ,gBAuCE,KAQE,IACE,UAAA,CACA,cAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,mCAtDN,gBAuCE,KAkBE,GAAG,IACD,iBAAA,CACA,eAAA,CACA,gCAEA,gBAvBJ,KAkBE,GAAG,GAKA,OACC,OACE,YAFJ,gBAvBJ,KAkBE,GAAG,GAKA,OAKC,MAAK,aACH,yBANJ,gBAvBJ,K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AAA,CACA,SAAA,CACA,iBAAA,CACA,cAAA,YAGF,WAAC,MAAO,KACN,gCAAA,CACA,wCAGF,WAAC,QAAS,KACR,+BAAA,CACA,+BA3BJ,WA8BE,GA9BF,WA8BK,IACD,UAAA,CACA,WAAA,CACA,aAAA,CACA,eAlCJ,WAqCE,IACE,KAAA,CACA,MAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CACA,gBAEA,WARF,GAQG,WACC,YADF,WARF,GAQG,UAGC,KACE,eAIJ,WAhBF,GAgBG,aACC,YADF,WAhBF,GAgBG,YAGC,KACE,eAIJ,WAxBF,GAwBG,eACC,UAAA,CACA,WAAA,CACA,4EAHF,WAxBF,GAwBG,cAKC,KACE,kBAMR,mBACE,OAAA,CACA,QAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,kBAAA,CACA,sBAAA,CACA","file":"login.css"}
|
12
vendor/composer/installed.json
vendored
12
vendor/composer/installed.json
vendored
@ -460,17 +460,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "zoujingli/wechat-developer",
|
"name": "zoujingli/wechat-developer",
|
||||||
"version": "v1.2.21",
|
"version": "v1.2.22",
|
||||||
"version_normalized": "1.2.21.0",
|
"version_normalized": "1.2.22.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/WeChatDeveloper.git",
|
"url": "https://github.com/zoujingli/WeChatDeveloper.git",
|
||||||
"reference": "5cf008c37471f775ae28a23fd1ac06c91eac682f"
|
"reference": "7eb7f6a2d8aa4a105208c7dff6428dcecd0c7059"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/5cf008c37471f775ae28a23fd1ac06c91eac682f",
|
"url": "https://api.github.com/repos/zoujingli/WeChatDeveloper/zipball/7eb7f6a2d8aa4a105208c7dff6428dcecd0c7059",
|
||||||
"reference": "5cf008c37471f775ae28a23fd1ac06c91eac682f",
|
"reference": "7eb7f6a2d8aa4a105208c7dff6428dcecd0c7059",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -490,7 +490,7 @@
|
|||||||
"ext-xml": "*",
|
"ext-xml": "*",
|
||||||
"php": ">=5.4"
|
"php": ">=5.4"
|
||||||
},
|
},
|
||||||
"time": "2020-04-26T03:22:09+00:00",
|
"time": "2020-07-04T07:24:41+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
2
vendor/zoujingli/wechat-developer/We.php
vendored
2
vendor/zoujingli/wechat-developer/We.php
vendored
@ -86,7 +86,7 @@ class We
|
|||||||
* 定义当前版本
|
* 定义当前版本
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.2.21';
|
const VERSION = '1.2.22';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 静态配置
|
* 静态配置
|
||||||
|
@ -205,17 +205,15 @@ class BasicWeChat
|
|||||||
* @param string $url 接口地址
|
* @param string $url 接口地址
|
||||||
* @param string $method 当前接口方法
|
* @param string $method 当前接口方法
|
||||||
* @param array $arguments 请求参数
|
* @param array $arguments 请求参数
|
||||||
* @return mixed
|
* @return string
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \WeChat\Exceptions\LocalCacheException
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
*/
|
*/
|
||||||
protected function registerApi(&$url, $method, $arguments = [])
|
protected function registerApi(&$url, $method, $arguments = [])
|
||||||
{
|
{
|
||||||
$this->currentMethod = ['method' => $method, 'arguments' => $arguments];
|
$this->currentMethod = ['method' => $method, 'arguments' => $arguments];
|
||||||
if (empty($this->access_token)) {
|
if (empty($this->access_token)) $this->access_token = $this->getAccessToken();
|
||||||
$this->access_token = $this->getAccessToken();
|
return $url = str_replace('ACCESS_TOKEN', urlencode($this->access_token), $url);
|
||||||
}
|
|
||||||
return $url = str_replace('ACCESS_TOKEN', $this->access_token, $url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
129
vendor/zoujingli/wechat-developer/WeMini/Live.php
vendored
129
vendor/zoujingli/wechat-developer/WeMini/Live.php
vendored
@ -23,6 +23,19 @@ use WeChat\Contracts\BasicWeChat;
|
|||||||
*/
|
*/
|
||||||
class Live extends BasicWeChat
|
class Live extends BasicWeChat
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 创建直播间
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function create($data)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token=ACCESS_TOKEN';
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取直播房间列表
|
* 获取直播房间列表
|
||||||
@ -34,7 +47,7 @@ class Live extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function getLiveList($start = 0, $limit = 10)
|
public function getLiveList($start = 0, $limit = 10)
|
||||||
{
|
{
|
||||||
$url = 'http://api.weixin.qq.com/wxa/business/getliveinfo?access_token=ACCESS_TOKEN';
|
$url = 'https://api.weixin.qq.com/wxa/business/getliveinfo?access_token=ACCESS_TOKEN';
|
||||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
return $this->callPostApi($url, ['start' => $start, 'limit' => $limit], true);
|
return $this->callPostApi($url, ['start' => $start, 'limit' => $limit], true);
|
||||||
}
|
}
|
||||||
@ -48,7 +61,119 @@ class Live extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function getLiveInfo($data = [])
|
public function getLiveInfo($data = [])
|
||||||
{
|
{
|
||||||
$url = 'http://api.weixin.qq.com/wxa/business/getliveinfo?access_token=ACCESS_TOKEN';
|
$url = 'https://api.weixin.qq.com/wxa/business/getliveinfo?access_token=ACCESS_TOKEN';
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 直播间导入商品
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function addLiveGoods($data = [])
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods?access_token=ACCESS_TOKEN';
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品添加并提审
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function addGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品撤回审核
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function resetAuditGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重新提交审核
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function auditGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/audit?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除商品
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function deleteGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/delete?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新商品
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function updateGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/update?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取商品状态
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function stateGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxa/business/getgoodswarehouse?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取商品列表
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function getGoods($data)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved?access_token=ACCESS_TOKEN";
|
||||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
return $this->callPostApi($url, $data, true);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user