修改微信授权协议

This commit is contained in:
Anyon 2020-03-31 15:01:15 +08:00
parent 9fcb3a9b61
commit 27e8bc8b52
3 changed files with 6 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class WechatService extends Service
{ {
list($type, $class, $classname) = self::paraseName($name); list($type, $class, $classname) = self::paraseName($name);
if ("{$type}{$class}" !== $name) { if ("{$type}{$class}" !== $name) {
throw new \think\Exception("抱歉,需要实例 {$name} 不在符合规则!"); throw new \think\Exception("抱歉,实例 {$name} 不在符合规则!");
} }
if (sysconf('wechat.type') === 'api' || $type === 'WePay') { if (sysconf('wechat.type') === 'api' || $type === 'WePay') {
if ($type === 'ThinkService') { if ($type === 'ThinkService') {
@ -109,7 +109,7 @@ class WechatService extends Service
$data = ['class' => $name, 'appid' => $appid, 'time' => time(), 'nostr' => uniqid()]; $data = ['class' => $name, 'appid' => $appid, 'time' => time(), 'nostr' => uniqid()];
$data['sign'] = md5("{$data['class']}#{$appid}#{$appkey}#{$data['time']}#{$data['nostr']}"); $data['sign'] = md5("{$data['class']}#{$appid}#{$appkey}#{$data['time']}#{$data['nostr']}");
$token = enbase64url(json_encode($data, JSON_UNESCAPED_UNICODE)); $token = enbase64url(json_encode($data, JSON_UNESCAPED_UNICODE));
$location = "http://open.cuci.cc/service/api.client/_TYPE_?not_init_session=1&token={$token}"; $location = "https://open.cuci.cc/service/api.client/_TYPE_?not_init_session=1&token={$token}";
if (class_exists('Yar_Client')) { if (class_exists('Yar_Client')) {
$client = new \Yar_Client(str_replace('_TYPE_', 'yar', $location)); $client = new \Yar_Client(str_replace('_TYPE_', 'yar', $location));
} else { } else {

View File

@ -136,6 +136,9 @@
.border-0 { .border-0 {
border: 0 !important; border: 0 !important;
} }
.border-radius {
border-radius: 50% !important;
}
.border-radius-0 { .border-radius-0 {
border-radius: 0 !important; border-radius: 0 !important;
} }

View File

@ -1 +1 @@
{"version":3,"sources":["console.custom.less"],"names":[],"mappings":"AAAA;EACE,aAAA;EACA,cAAA;EACA,eAAA;EAC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,OAzBD,MAyBE;EACC,kBAAA;;AAGF,OA7BD,MA6BE;EACC,kBAAA;;AAKF,OADD,OACE;EACC,gBAAA;;AAGF,OALD,OAKE;EACC,kBAAA;;AAGF,OATD,OASE;EACC,mBAAA;;AAGF,OAbD,OAaE;EACC,mBAAA;;AAGF,OAjBD,OAiBE;EACC,mBAAA;;AAGF,OArBD,OAqBE;EACC,mBAAA;;AAGF,OAzBD,OAyBE;EACC,mBAAA;;AAGF,OA7BD,OA6BE;EACC,mBAAA","file":"console.custom.css"} {"version":3,"sources":["console.custom.less"],"names":[],"mappings":"AAAA;EACE,aAAA;EACA,cAAA;EACA,eAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,yBAAA;EACA,yBAAA;EACA,0BAAA;;AAGF;EACE,iBAAA;EACA,qBAAA;EACA,sBAAA;EACA,yBAAA;;AAGF;EACE,2BAAA;EACA,8BAAA;EACA,gCAAA;EACA,mCAAA;;AAGF;EACE,kBAAA;;AAGF;EACE,kBAAA;;AAGF;EACE,cAAA;;AAGF;EACE,eAAA;;AAGF;EACE,mBAAA;;AAGF;EACE,WAAA;EACA,eAAA;;AAGF;EACE,qBAAA;;AAKA,MAAC;EACC,WAAA;;AAGF,MAAC;EACC,YAAA;;AAKF,MAAC;EACC,WAAA;;AAGF,MAAC;EACC,YAAA;;AAKF,OAAC;EACC,cAAA;;AAGF,OAAC;EACC,cAAA;;AAGF,OAAC;EACC,WAAA;;AAGF,OAAC;EACC,WAAA;;AAGF,OAAC;EACC,WAAA;;AAKF,UAAC,GAAI;EACH,cAAA;;AAGF,UAAC,IAAK;EACJ,cAAA;;AAGF,UAAC,IAAK;EACJ,WAAA;;AAGF,UAAC,IAAK;EACJ,WAAA;;AAGF,UAAC,KAAM;EACL,WAAA;;AAKF,MAAC;EACC,mBAAA;;AAGF,MAAC;EACC,gBAAA;;AAGF,MAAC;EACC,iBAAA;;AAGF,MAAC;EACC,kBAAA;;AAGF,MAAC;EACC,sBAAA;;AAGF,M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