diff --git a/a.php b/a.php new file mode 100644 index 0000000..bfd863b --- /dev/null +++ b/a.php @@ -0,0 +1,2 @@ + p { + margin-bottom: 15px; +} diff --git a/addons/epay/assets/css/epay.css b/addons/epay/assets/css/epay.css new file mode 100644 index 0000000..dccff65 --- /dev/null +++ b/addons/epay/assets/css/epay.css @@ -0,0 +1,20 @@ +@import url("../../../css/bootstrap.min.css"); +@import url("../../../libs/font-awesome/css/font-awesome.min.css"); +html, +body { + height: 100%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-weight: 400; + overflow-x: hidden; + overflow-y: auto; + background: #f4f6f8; + font-size: 14px; + color: #616161; +} +.container { + max-width: 850px; + margin: 0 auto; + padding: 50px; +} diff --git a/addons/epay/assets/css/wechat.css b/addons/epay/assets/css/wechat.css new file mode 100644 index 0000000..8c8aafe --- /dev/null +++ b/addons/epay/assets/css/wechat.css @@ -0,0 +1,100 @@ +.wechat { + margin-top: 30px; +} + +.wechat h2 { + margin: 0 0 15px 0; + padding-bottom: 15px; + border-bottom: 1px solid #eee; + position: relative; +} + +.wechat-body { +} + +.wechat-qrcode { + margin-bottom: 20px; + position: relative; +} + +.wechat-qrcode img { + width: 100%; + border: 1px solid #eee; +} + +.wechat-qrcode .expired { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + opacity: .95; + background: #fff url(../images/expired.png) center center no-repeat; +} + +.wechat-qrcode .paid { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + opacity: .95; + background: #fff url(../images/paid.png) center center no-repeat; +} + +.wechat-scan { + padding: 0; +} + +.wechat-scan img { + width: 100%; +} + +.wechat-tips { + height: 60px; + padding: 8px 0 8px 125px; + background: #00c800 url(../images/scan.png) 50px 12px no-repeat; + background-size: 36px 36px; +} + +.wechat-tips p { + margin: 0; + font-size: 14px; + line-height: 22px; + color: #fff; + font-weight: 700 +} + +.wechat-time { + font-size: 14px; + margin-bottom: 15px; + position: absolute; + top: 15px; + right: 10px; + font-weight: normal; + display: none; +} + +.wechat-time span { + color: red; +} + +.wechat-order { + margin-bottom: 5px; +} + +.wechat-order em { + font-style: normal; + color: #666; +} + +.wechat-order em.wechat-price { + color: #ff3333; + font-weight: bold; +} + +@media (max-width: 767px) { + .wechat { + margin-top: 20px; + } +} \ No newline at end of file diff --git a/addons/epay/assets/images/alipay.png b/addons/epay/assets/images/alipay.png new file mode 100644 index 0000000..8831c35 Binary files /dev/null and b/addons/epay/assets/images/alipay.png differ diff --git a/addons/epay/assets/images/expired.png b/addons/epay/assets/images/expired.png new file mode 100644 index 0000000..febcae1 Binary files /dev/null and b/addons/epay/assets/images/expired.png differ diff --git a/addons/epay/assets/images/logo-alipay.png b/addons/epay/assets/images/logo-alipay.png new file mode 100644 index 0000000..7a8f23c Binary files /dev/null and b/addons/epay/assets/images/logo-alipay.png differ diff --git a/addons/epay/assets/images/logo-wechat.png b/addons/epay/assets/images/logo-wechat.png new file mode 100644 index 0000000..3d65617 Binary files /dev/null and b/addons/epay/assets/images/logo-wechat.png differ diff --git a/addons/epay/assets/images/logo.png b/addons/epay/assets/images/logo.png new file mode 100644 index 0000000..d76d7ca Binary files /dev/null and b/addons/epay/assets/images/logo.png differ diff --git a/addons/epay/assets/images/paid.png b/addons/epay/assets/images/paid.png new file mode 100644 index 0000000..4f04f12 Binary files /dev/null and b/addons/epay/assets/images/paid.png differ diff --git a/addons/epay/assets/images/scan.png b/addons/epay/assets/images/scan.png new file mode 100644 index 0000000..203727c Binary files /dev/null and b/addons/epay/assets/images/scan.png differ diff --git a/addons/epay/assets/images/tips.png b/addons/epay/assets/images/tips.png new file mode 100644 index 0000000..093cc6f Binary files /dev/null and b/addons/epay/assets/images/tips.png differ diff --git a/addons/epay/assets/images/wechat.png b/addons/epay/assets/images/wechat.png new file mode 100644 index 0000000..6737169 Binary files /dev/null and b/addons/epay/assets/images/wechat.png differ diff --git a/addons/epay/assets/js/common.js b/addons/epay/assets/js/common.js new file mode 100644 index 0000000..f353e70 --- /dev/null +++ b/addons/epay/assets/js/common.js @@ -0,0 +1,52 @@ +$(function () { + $('.carousel').carousel({ + interval: 5000 //changes the speed + }); + $(".btn-experience").on("click", function () { + location.href = "/addons/epay/index/experience?amount=" + $("input[name=amount]").val() + "&type=" + $(this).data("type") + "&method=" + $("#method").val(); + }); + + var si, xhr; + if (typeof queryParams != 'undefined') { + var queryResult = function () { + xhr && xhr.abort(); + xhr = $.ajax({ + url: "", + type: "post", + data: queryParams, + dataType: 'json', + success: function (ret) { + if (ret.code == 1) { + var data = ret.data; + console.log(data); + if (typeof data.trade_state != 'undefined') { + if (data.trade_state == 'SUCCESS') { + $(".wechat-qrcode .paid").removeClass("hidden"); + $(".wechat-tips p").html("支付成功!
3秒后将自动跳转..."); + setTimeout(function () { + location.href = queryParams.return_url; + }, 3000); + clearInterval(si); + } else if (data.trade_state == 'REFUND') { + $(".wechat-tips p").html("请求失败!
请返回重新发起支付"); + clearInterval(si); + } else if (data.trade_state == 'NOTPAY') { + } else if (data.trade_state == 'CLOSED') { + $(".wechat-tips p").html("订单已关闭!
请返回重新发起支付"); + clearInterval(si); + } else if (data.trade_state == 'USERPAYING') { + } else if (data.trade_state == 'PAYERROR') { + clearInterval(si); + } + } + } + } + }); + }; + si = setInterval(function () { + queryResult(); + }, 3000); + queryResult(); + } + +}); \ No newline at end of file diff --git a/addons/epay/assets/less/common.less b/addons/epay/assets/less/common.less new file mode 100644 index 0000000..116feac --- /dev/null +++ b/addons/epay/assets/less/common.less @@ -0,0 +1,113 @@ +/*! + * Start Bootstrap - Modern Business (http://startbootstrap.com/) + * Copyright 2013-2016 Start Bootstrap + * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE) + */ + +/* Global Styles */ + +html, +body { + height: 100%; +} + +body { + padding-top: 50px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + +} + +.img-addon { + margin-bottom: 10px; + width:100%; +} + +.img-hover:hover { + opacity: 0.8; +} + +.display-1 { + font-size:44px; +} +.display-4 { + font-size:24px; + line-height:32px; +} + +/* Home Page Carousel */ + +header.carousel { + height: 50%; +} + +header.carousel .item, +header.carousel .item.active, +header.carousel .carousel-inner { + height: 100%; +} + +header.carousel .fill { + width: 100%; + height: 100%; +} + +.error-404 { + font-size: 100px; +} + +/* Pricing Page Styles */ + +.price { + display: block; + font-size: 50px; + line-height: 50px; +} + +.price sup { + top: -20px; + left: 2px; + font-size: 20px; +} + +.period { + display: block; + font-style: italic; +} + +/* Footer Styles */ + +footer { + margin: 50px 0; +} + +/* Responsive Styles */ + +@media(max-width:991px) { + .customer-img, + .img-related { + margin-bottom: 30px; + } +} + +@media(max-width:767px) { + .img-addon { + margin-bottom: 15px; + } + + header.carousel .carousel { + height: 70%; + } +} +.carousel-body { + position:absolute; + width: 100%; + top:25%; + text-align:center; + color:#fff; +} + +.addonlist a > p{ + margin-bottom:15px; +} diff --git a/addons/epay/assets/less/epay.less b/addons/epay/assets/less/epay.less new file mode 100644 index 0000000..028eca1 --- /dev/null +++ b/addons/epay/assets/less/epay.less @@ -0,0 +1,28 @@ +@import (reference) "../../../../public/assets/less/bootstrap-less/mixins.less"; +@import (reference) "../../../../public/assets/less/bootstrap-less/variables.less"; +@import (reference) "../../../../public/assets/less/fastadmin/mixins.less"; +@import (reference) "../../../../public/assets/less/fastadmin/variables.less"; +@import "../../../../public/assets/less/lesshat.less"; +@import url("../../../css/bootstrap.min.css"); +@import url("../../../libs/font-awesome/css/font-awesome.min.css"); + +html, +body { + height: 100%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-weight: 400; + overflow-x: hidden; + overflow-y: auto; + background: #f4f6f8; + font-size: 14px; + color: #616161; + +} + +.container { + max-width: 850px; + margin: 0 auto; + padding:50px; +} diff --git a/addons/epay/certs/apiclient_cert.pem b/addons/epay/certs/apiclient_cert.pem new file mode 100644 index 0000000..e69de29 diff --git a/addons/epay/certs/apiclient_key.pem b/addons/epay/certs/apiclient_key.pem new file mode 100644 index 0000000..e69de29 diff --git a/addons/epay/config.php b/addons/epay/config.php new file mode 100644 index 0000000..85c6a4e --- /dev/null +++ b/addons/epay/config.php @@ -0,0 +1,69 @@ + + array ( + 'name' => 'wechat', + 'title' => '微信', + 'type' => 'array', + 'content' => + array ( + ), + 'value' => + array ( + 'appid' => '', + 'app_id' => '', + 'app_secret' => '', + 'miniapp_id' => '', + 'mch_id' => '', + 'key' => '', + 'notify_url' => '/addons/epay/api/notifyx/type/wechat', + 'cert_client' => '/epay/certs/apiclient_cert.pem', + 'cert_key' => '/epay/certs/apiclient_key.pem', + 'log' => 1, + ), + 'rule' => '', + 'msg' => '', + 'tip' => '微信参数配置', + 'ok' => '', + 'extend' => '', + ), + 1 => + array ( + 'name' => 'alipay', + 'title' => '支付宝', + 'type' => 'array', + 'content' => + array ( + ), + 'value' => + array ( + 'app_id' => '2016102100728544', + 'notify_url' => '/addons/epay/api/notifyx/type/alipay', + 'return_url' => '/addons/epay/api/returnx/type/alipay', + 'ali_public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuWLcTZsd8mWDJ12rPJrog3/0o0toQqOxf8boG9WeVQ+aUyA7AD6j46xFJgdDlTVqMoOn2ywsaa6rnPtQ06rhSmTgGsLKCNHGfkP4FkAQNa/2LGHYhe4dQ/aek75KjzR4Gabnv0QtgMabIMUcM1c4bbQBo2dSHVL8FExFBLK1jiXIRhyFMA+llD2Ir341Q3Mls5DWuXoTmx+NXlcjwOuN2/u7zsSvCdxGWX8wkkY2is+IKMZ5ODUg72toSCMCr76exkWFlzp4b9WsXPtMei3XZpX4jQk6gy0gu8cAo3R7DpYMxIjNaP4YXOL6i/xTj9ps1S5JBnX5VskZSswXVQe55QIDAQAB', + 'private_key' => 'MIIEpQIBAAKCAQEAuWLcTZsd8mWDJ12rPJrog3/0o0toQqOxf8boG9WeVQ+aUyA7AD6j46xFJgdDlTVqMoOn2ywsaa6rnPtQ06rhSmTgGsLKCNHGfkP4FkAQNa/2LGHYhe4dQ/aek75KjzR4Gabnv0QtgMabIMUcM1c4bbQBo2dSHVL8FExFBLK1jiXIRhyFMA+llD2Ir341Q3Mls5DWuXoTmx+NXlcjwOuN2/u7zsSvCdxGWX8wkkY2is+IKMZ5ODUg72toSCMCr76exkWFlzp4b9WsXPtMei3XZpX4jQk6gy0gu8cAo3R7DpYMxIjNaP4YXOL6i/xTj9ps1S5JBnX5VskZSswXVQe55QIDAQABAoIBAGV3ZJjdU7C+OuCq9fQ/3Q9MU3uk5DXFHnuPRK8nZnesCI2C0Ig7wLv2KAq+YxEhoTRwtsjRDqXxQmCzdPPFTXXIbJh5ENdu6bNmRDz5Z2XbH2P/UeFMCJyQOQ8oUeq7jxiLL8CR8k3PZkyzVdIL5Qi2Q0dKX7lJGEuLyyLdJV3dA/e0eXTAX7XsihNeNh5maEkzmA/yS51MJM/nd9hl1TTAZpzJyuDwrM9jB88XWqM/URoedIIVZZI47KW1lGqYXwTYa8QV5ADAsXw/lXHjIMy9bvuoN9EqMSQ4NhfuOLvyueFG+Gt+Wwpaf0mmUL5htuGAXIK3AUoXl5K5uiJxIKkCgYEA9QLjpertX3IIyBbDa0p1z98zV/LvRwWh/K7f4EinyqQHRPBm7BIZtpgOztSdZYE6U6QG3cYzvbWEZ2Erq7ltpc1Yi9/Qjwp4zeUlxriuCp1Yb5/oQ9Xl75KJuPlFFFwkxGIjVwHVSPQYeJ5vqpSD9Ks9waDG5fFKW7wYioE4excCgYEAwbNh2624Dz+1SaAbbQ9wP5ursTGbbmTuz/092zNss9sXtfbmZHhiVGBV8DEygNQvW/1Sdyv+R0Q/TyHYBav8t55ON+AGaJ0KLexmeYqR1ksZ93RdN4bo/0zFel07qFdD+qKX+sKiazsh79liKg3yjuv7iKyVzAFqWHuNDDDk4GMCgYEAiTI2+3+TsDCQzkpA32FwmxgnDgaRCjoTPQVHg7Xrj0NOdsIPP/3avC5ljFfuUxqL6K4e0izcaEyueZ0l8SECTyevf5Oym4aHovO/tYlQm80D6m2mh+XMvdxWlmeu0PnP9M/nbh8uqY1V7qT5bpF/WpBRIo2/Ep+MvdWUAGrfj70CgYEAh9PGF0ml++tssIg5MyzURYZfyw1CNRNJ80ddjMxuuWA1LEBKJsHUEd7L5HZbN8OSwirNHQwYbtkIm/Dbjn6f5BJ6Puw1Ej6s2K8g3LGyulZHiyJqC3nrALtQ7xFZuB4ZaTOC5zB8vDzm+02wbFUDdf08kQaUtE15yTo6GgZfOIkCgYEAgv+VQZMX5cENxdUo2jw7FsNNo8jsK99iLkjri0R4wpP6x2OFZKBe0oqXN+bIGXRhAEU8F11uD1l+nnZhnRjB3P6vB16JNn691DjQf0R4SNECQcVU+BDb2DHG9PywwYcIM2x0idvd2QEYMLukJ0CPk5k5cIjzHE0mgblN2ktnhVg=', + 'log' => '1', + ), + 'rule' => 'required', + 'msg' => '', + 'tip' => '支付宝参数配置', + 'ok' => '', + 'extend' => '', + ), + 2 => + array ( + 'name' => '__tips__', + 'title' => '温馨提示', + 'type' => 'array', + 'content' => + array ( + ), + 'value' => '请注意微信支付证书路径位于/addons/epay/certs目录下,请替换成你自己的证书
appid:APP的appid
app_id:公众号的appid
app_secret:公众号的secret
miniapp_id:小程序ID
mch_id:微信商户ID
key:微信商户支付的密钥', + 'rule' => '', + 'msg' => '', + 'tip' => '微信参数配置', + 'ok' => '', + 'extend' => '', + ), +); diff --git a/addons/epay/controller/Api.php b/addons/epay/controller/Api.php new file mode 100644 index 0000000..fc7aa9a --- /dev/null +++ b/addons/epay/controller/Api.php @@ -0,0 +1,229 @@ +error(); + } + + /** + * 外部提交 + */ + public function submit() + { + $out_trade_no = $this->request->request("out_trade_no"); + $title = $this->request->request("title"); + $amount = $this->request->request('amount'); + $type = $this->request->request('type'); + $method = $this->request->request('method', 'web'); + $openid = $this->request->request('openid', ''); + $auth_code = $this->request->request('auth_code', ''); + $notifyurl = $this->request->request('notifyurl', ''); + $returnurl = $this->request->request('returnurl', ''); + + if (!$amount || $amount < 0) { + $this->error("支付金额必须大于0"); + } + + if (!$type || !in_array($type, ['alipay', 'wechat'])) { + $this->error("支付类型错误"); + } + + $params = [ + 'type' => $type, + 'out_trade_no' => $out_trade_no, + 'title' => $title, + 'amount' => $amount, + 'method' => $method, + 'openid' => $openid, + 'auth_code' => $auth_code, + 'notifyurl' => $notifyurl, + 'returnurl' => $returnurl, + ]; + return Service::submitOrder($params); + } + + /** + * 微信支付 + * @return string + */ + public function wechat() + { + $config = Service::getConfig('wechat'); + + $isWechat = stripos($this->request->server('HTTP_USER_AGENT'), 'MicroMessenger') !== false; + $isMobile = $this->request->isMobile(); + $this->view->assign("isWechat", $isWechat); + $this->view->assign("isMobile", $isMobile); + + if ($isWechat) { + //发起公众号(jsapi支付) + $orderData = Session::get("wechatorderdata"); + $openid = Session::get('openid'); + //如果没有openid + if (!$openid) { + $wechat = new Wechat($config['wechat']['app_id'], $config['wechat']['app_secret']); + $openid = $wechat->getOpenid(); + } + + $orderData['method'] = 'mp'; + $orderData['openid'] = $openid; + $payData = Service::submitOrder($orderData); + $payData = json_decode($payData, true); + if (!isset($payData['appId'])) { + $this->error("创建订单失败,请返回重试"); + } + $type = 'jsapi'; + $this->view->assign("orderData", $orderData); + $this->view->assign("payData", $payData); + } else { + //发起PC支付(Native支付) + $body = $this->request->request("body"); + $code_url = $this->request->request("code_url"); + $out_trade_no = $this->request->request("out_trade_no"); + $return_url = $this->request->request("return_url"); + $total_fee = $this->request->request("total_fee"); + + $sign = $this->request->request("sign"); + + $data = [ + 'body' => $body, + 'code_url' => $code_url, + 'out_trade_no' => $out_trade_no, + 'return_url' => $return_url, + 'total_fee' => $total_fee, + ]; + if ($sign != md5(implode('', $data) . $config['wechat']['appid'])) { + $this->error("签名不正确"); + } + + if ($this->request->isAjax()) { + $pay = new Pay($config); + $result = $pay->driver('wechat')->gateway('scan')->find($out_trade_no); + if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') { + $this->success("", "", ['trade_state' => $result['trade_state']]); + } else { + $this->error("查询失败"); + } + } + $data['sign'] = $sign; + $type = 'pc'; + $this->view->assign("data", $data); + } + + $this->view->assign("type", $type); + $this->view->assign("title", "微信支付"); + return $this->view->fetch(); + } + + /** + * 支付成功回调 + */ + public function notifyx() + { + $type = $this->request->param('type'); + $data = $this->request->request('', null, 'trim'); + $config = Service::getConfig($type); + $pay = new Pay($config); + if (!$pay->driver($type)->gateway()->verify($data)) { + echo '签名错误'; + return; + } + + //你可以在这里你的业务处理逻辑,比如处理你的订单状态、给会员加余额等等功能 + //下面这句必须要执行,且在此之前不能有任何输出 + echo "success"; + return; + } + + /** + * 支付成功返回 + */ + public function returnx() + { + $type = $this->request->param('type'); + $data = $this->request->request('', null, 'trim'); + $config = Service::getConfig($type); + $pay = new Pay($config); + if ($type == 'alipay' && !$pay->driver($type)->gateway()->verify($data)) { + echo '签名错误'; + return; + } + + //你可以在这里定义你的提示信息,但切记不可在此编写逻辑 + $this->success("恭喜你!支付成功!", addon_url("epay/index/index")); + + return; + } + + /** + * 生成二维码 + * @return Response + */ + public function qrcode() + { + $text = $this->request->get('text', 'hello world'); + $size = $this->request->get('size', 250); + $padding = $this->request->get('padding', 15); + $errorcorrection = $this->request->get('errorcorrection', 'medium'); + $foreground = $this->request->get('foreground', "#ffffff"); + $background = $this->request->get('background', "#000000"); + $logo = $this->request->get('logo'); + $logosize = $this->request->get('logosize'); + $label = $this->request->get('label'); + $labelfontsize = $this->request->get('labelfontsize'); + $labelhalign = $this->request->get('labelhalign'); + $labelvalign = $this->request->get('labelvalign'); + + // 前景色 + list($r, $g, $b) = sscanf($foreground, "#%02x%02x%02x"); + $foregroundcolor = ['r' => $r, 'g' => $g, 'b' => $b]; + + // 背景色 + list($r, $g, $b) = sscanf($background, "#%02x%02x%02x"); + $backgroundcolor = ['r' => $r, 'g' => $g, 'b' => $b]; + + $qrCode = new QrCode(); + $qrCode + ->setText($text) + ->setSize($size) + ->setPadding($padding) + ->setErrorCorrection($errorcorrection) + ->setForegroundColor($foregroundcolor) + ->setBackgroundColor($backgroundcolor) + ->setLogoSize($logosize) + ->setLabelFontPath(ROOT_PATH . 'public/assets/fonts/Times New Roman.ttf') + ->setLabel($label) + ->setLabelFontSize($labelfontsize) + ->setLabelHalign($labelhalign) + ->setLabelValign($labelvalign) + ->setImageType(QrCode::IMAGE_TYPE_PNG); + //也可以直接使用render方法输出结果 + //$qrCode->render(); + return new Response($qrCode->get(), 200, ['Content-Type' => $qrCode->getContentType()]); + } + +} diff --git a/addons/epay/controller/Index.php b/addons/epay/controller/Index.php new file mode 100644 index 0000000..f3a8f8f --- /dev/null +++ b/addons/epay/controller/Index.php @@ -0,0 +1,108 @@ +view->assign("title", "FastAdmin微信支付宝整合插件"); + return $this->view->fetch(); + } + + /** + * 体验,仅供开发测试 + */ + public function experience() + { + $amount = $this->request->request('amount'); + $type = $this->request->request('type'); + $method = $this->request->request('method'); + + if (!$amount || $amount < 0) { + $this->error("支付金额必须大于0"); + } + + if (!$type || !in_array($type, ['alipay', 'wechat'])) { + $this->error("支付类型不能为空"); + } + + //订单号 + $out_trade_no = date("YmdHis") . mt_rand(100000, 999999); + + //订单标题 + $title = 'FastAdmin测试订单'; + + //回调链接 + $notifyurl = $this->request->root(true) . '/addons/epay/index/notifyx/paytype/' . $type; + $returnurl = $this->request->root(true) . '/addons/epay/index/returnx/paytype/' . $type . '/out_trade_no/' . $out_trade_no; + + return Service::submitOrder($amount, $out_trade_no, $type, $title, $notifyurl, $returnurl, $method); + } + + /** + * 支付成功,仅供开发测试 + */ + public function notifyx() + { + $paytype = $this->request->param('paytype'); + $pay = \addons\epay\library\Service::checkNotify($paytype); + if (!$pay) { + echo '签名错误'; + return; + } + $data = $pay->verify(); + try { + $payamount = $paytype == 'alipay' ? $data['total_amount'] : $data['total_fee'] / 100; + $out_trade_no = $data['out_trade_no']; + + //你可以在此编写订单逻辑 + } catch (Exception $e) { + } + echo $pay->success(); + } + + /** + * 支付返回,仅供开发测试 + */ + public function returnx() + { + $paytype = $this->request->param('paytype'); + $out_trade_no = $this->request->param('out_trade_no'); + $pay = \addons\epay\library\Service::checkReturn($paytype); + if (!$pay) { + $this->error('签名错误'); + } + + //你可以在这里通过out_trade_no去验证订单状态 + //但是不可以在此编写订单逻辑!!! + + $this->success("请返回网站查看支付结果", addon_url("epay/index/index")); + } + +} diff --git a/addons/epay/info.ini b/addons/epay/info.ini new file mode 100644 index 0000000..16d6320 --- /dev/null +++ b/addons/epay/info.ini @@ -0,0 +1,8 @@ +name = epay +title = 微信支付宝整合 +intro = 可用于整合微信、支付宝付款,快速整合FastAdmin的其它模块 +author = Karson +website = https://www.fastadmin.net +version = 1.0.5 +state = 1 +url = /addons/epay.html diff --git a/addons/epay/library/OrderException.php b/addons/epay/library/OrderException.php new file mode 100644 index 0000000..25cbcb3 --- /dev/null +++ b/addons/epay/library/OrderException.php @@ -0,0 +1,17 @@ +message = $message; + $this->code = $code; + $this->data = $data; + } + +} \ No newline at end of file diff --git a/addons/epay/library/Service.php b/addons/epay/library/Service.php new file mode 100644 index 0000000..f412d0d --- /dev/null +++ b/addons/epay/library/Service.php @@ -0,0 +1,267 @@ + $amount, + 'orderid' => $orderid, + 'type' => $type, + 'title' => $title, + 'notifyurl' => $notifyurl, + 'returnurl' => $returnurl, + 'method' => $method, + ]; + } else { + $params = $amount; + } + $type = isset($params['type']) && in_array($params['type'], ['alipay', 'wechat']) ? $params['type'] : 'wechat'; + $method = isset($params['method']) ? $params['method'] : 'web'; + $orderid = isset($params['orderid']) ? $params['orderid'] : date("YmdHis") . mt_rand(100000, 999999); + $amount = isset($params['amount']) ? $params['amount'] : 1; + $title = isset($params['title']) ? $params['title'] : "支付"; + $auth_code = isset($params['auth_code']) ? $params['auth_code'] : ''; + $openid = isset($params['openid']) ? $params['openid'] : ''; + + $request = request(); + $notifyurl = isset($params['notifyurl']) ? $params['notifyurl'] : $request->root(true) . '/addons/epay/index/' . $type . 'notify'; + $returnurl = isset($params['returnurl']) ? $params['returnurl'] : $request->root(true) . '/addons/epay/index/' . $type . 'return/out_trade_no/' . $orderid; + $html = ''; + $config = Service::getConfig($type); + $config[$type]['notify_url'] = $notifyurl; + $config[$type]['return_url'] = $returnurl; + + if ($type == 'alipay') { + //创建支付对象 + $pay = new Pay($config); + //支付宝支付,请根据你的需求,仅选择你所需要的即可 + $params = [ + 'out_trade_no' => $orderid,//你的订单号 + 'total_amount' => $amount,//单位元 + 'subject' => $title, + ]; + //如果是移动端自动切换为wap + $method = $request->isMobile() ? 'wap' : $method; + + switch ($method) { + case 'web': + //电脑支付,跳转 + $html = $pay->driver($type)->gateway('web')->pay($params); + Response::create($html)->send(); + break; + case 'wap': + //手机网页支付,跳转 + $html = $pay->driver($type)->gateway('wap')->pay($params); + Response::create($html)->send(); + break; + case 'app': + //APP支付,直接返回字符串 + $html = $pay->driver($type)->gateway('app')->pay($params); + break; + case 'scan': + //扫码支付,直接返回字符串 + $html = $pay->driver($type)->gateway('scan')->pay($params); + break; + case 'pos': + //刷卡支付,直接返回字符串 + //刷卡支付必须要有auth_code + $params['auth_code'] = $auth_code; + $html = $pay->driver($type)->gateway('pos')->pay($params); + break; + default: + //其它支付类型请参考:https://docs.pay.yansongda.cn/alipay + } + } else { + //如果是PC支付,判断当前环境,进行跳转 + if ($method == 'web') { + if ((strpos($request->server('HTTP_USER_AGENT'), 'MicroMessenger') !== false)) { + Session::delete("openid"); + Session::set("wechatorderdata", $params); + $url = addon_url('epay/api/wechat', [], true, true); + header("location:{$url}"); + exit; + } elseif ($request->isMobile()) { + $method = 'wap'; + } + } + + //创建支付对象 + $pay = new Pay($config); + $params = [ + 'out_trade_no' => $orderid,//你的订单号 + 'body' => $title, + 'total_fee' => $amount * 100, //单位分 + ]; + switch ($method) { + case 'web': + //电脑支付,跳转到自定义展示页面(FastAdmin独有) + $html = $pay->driver($type)->gateway('web')->pay($params); + Response::create($html)->send(); + break; + case 'mp': + //公众号支付 + //公众号支付必须有openid + $params['openid'] = $openid; + $html = $pay->driver($type)->gateway('mp')->pay($params); + break; + case 'wap': + //手机网页支付,跳转 + $params['spbill_create_ip'] = $request->ip(0, false); + $html = $pay->driver($type)->gateway('wap')->pay($params); + header("location:{$html}"); + exit; + break; + case 'app': + //APP支付,直接返回字符串 + $html = $pay->driver($type)->gateway('app')->pay($params); + break; + case 'scan': + //扫码支付,直接返回字符串 + $html = $pay->driver($type)->gateway('scan')->pay($params); + break; + case 'pos': + //刷卡支付,直接返回字符串 + //刷卡支付必须要有auth_code + $params['auth_code'] = $auth_code; + $html = $pay->driver($type)->gateway('pos')->pay($params); + break; + case 'miniapp': + //小程序支付,直接返回字符串 + //小程序支付必须要有openid + $params['openid'] = $openid; + $html = $pay->driver($type)->gateway('miniapp')->pay($params); + break; + default: + } + } + //返回字符串 + $html = is_array($html) ? json_encode($html) : $html; + return $html; + } + + /** + * 创建支付对象 + * @param string $type 支付类型 + * @param array $config 配置信息 + * @return bool + */ + public static function createPay($type, $config = []) + { + $type = strtolower($type); + if (!in_array($type, ['wechat', 'alipay'])) { + return false; + } + $config = self::getConfig($type); + $config = array_merge($config[$type], $config); + $pay = new Pay($config); + return $pay; + } + + /** + * 验证回调是否成功 + * @param string $type 支付类型 + * @param array $config 配置信息 + * @return bool|Pay + */ + public static function checkNotify($type, $config = []) + { + $type = strtolower($type); + if (!in_array($type, ['wechat', 'alipay'])) { + return false; + } + try { + $pay = new Pay(self::getConfig($type)); + $data = $type == 'wechat' ? file_get_contents("php://input") : request()->post('', null, 'trim'); + + $data = $pay->driver($type)->gateway()->verify($data); + + if ($type == 'alipay') { + if (in_array($data['trade_status'], ['TRADE_SUCCESS', 'TRADE_FINISHED'])) { + return $pay; + } + } else { + return $pay; + } + } catch (Exception $e) { + return false; + } + + return false; + } + + /** + * 验证返回是否成功 + * @param string $type 支付类型 + * @param array $config 配置信息 + * @return bool|Pay + */ + public static function checkReturn($type, $config = []) + { + $type = strtolower($type); + if (!in_array($type, ['wechat', 'alipay'])) { + return false; + } + //微信无需验证 + if ($type == 'wechat') { + return true; + } + try { + $pay = new Pay(self::getConfig($type)); + $data = $type == 'wechat' ? file_get_contents("php://input") : request()->get('', null, 'trim'); + $data = $pay->driver($type)->gateway()->verify($data); + if ($data) { + return $pay; + } + } catch (Exception $e) { + return false; + } + + return false; + } + + /** + * 获取配置 + * @param string $type 支付类型 + * @return array|mixed + */ + public static function getConfig($type = 'wechat') + { + $config = get_addon_config('epay'); + $config = isset($config[$type]) ? $config[$type] : $config['wechat']; + if ($config['log']) { + $config['log'] = [ + 'file' => LOG_PATH . '/epaylogs/' . $type . '-' . date("Y-m-d") . '.log', + 'level' => 'debug' + ]; + } + if (isset($config['cert_client']) && substr($config['cert_client'], 0, 6) == '/epay/') { + $config['cert_client'] = ADDON_PATH . $config['cert_client']; + } + if (isset($config['cert_key']) && substr($config['cert_key'], 0, 6) == '/epay/') { + $config['cert_key'] = ADDON_PATH . $config['cert_key']; + } + + $config['notify_url'] = empty($config['notify_url']) ? addon_url('epay/api/notifyx', [], false) . '/type/' . $type : $config['notify_url']; + $config['notify_url'] = !preg_match("/^(http:\/\/|https:\/\/)/i", $config['notify_url']) ? request()->root(true) . $config['notify_url'] : $config['notify_url']; + $config['return_url'] = empty($config['return_url']) ? addon_url('epay/api/returnx', [], false) . '/type/' . $type : $config['return_url']; + $config['return_url'] = !preg_match("/^(http:\/\/|https:\/\/)/i", $config['return_url']) ? request()->root(true) . $config['return_url'] : $config['return_url']; + return [$type => $config]; + } + +} \ No newline at end of file diff --git a/addons/epay/library/Wechat.php b/addons/epay/library/Wechat.php new file mode 100644 index 0000000..7b738b8 --- /dev/null +++ b/addons/epay/library/Wechat.php @@ -0,0 +1,107 @@ +app_id = $app_id; + $this->app_secret = $app_secret; + } + + /** + * 获取微信授权链接 + * + * @return string + */ + public function getAuthorizeUrl() + { + $redirect_uri = addon_url('epay/api/wechat', [], true, true); + $redirect_uri = urlencode($redirect_uri); + $state = \fast\Random::alnum(); + Session::set('state', $state); + return "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$this->app_id}&redirect_uri={$redirect_uri}&response_type=code&scope={$this->scope}&state={$state}#wechat_redirect"; + } + + /** + * 获取微信openid + * + * @return mixed|string + */ + public function getOpenid() + { + $openid = Session::get('openid'); + if (!$openid) { + if (!isset($_GET['code'])) { + $url = $this->getAuthorizeUrl(); + + Header("Location: $url"); + exit(); + } else { + $state = Session::get('state'); + if ($state == $_GET['state']) { + $code = $_GET['code']; + $token = $this->getAccessToken($code); + $openid = isset($token['openid']) ? $token['openid'] : ''; + if ($openid) { + Session::set("openid", $openid); + } + } + } + } + return $openid; + } + + /** + * 获取授权token网页授权 + * + * @param string $code + * @return mixed|string + */ + public function getAccessToken($code = '') + { + $params = [ + 'appid' => $this->app_id, + 'secret' => $this->app_secret, + 'code' => $code, + 'grant_type' => 'authorization_code' + ]; + $ret = Http::sendRequest('https://api.weixin.qq.com/sns/oauth2/access_token', $params, 'GET'); + if ($ret['ret']) { + $ar = json_decode($ret['msg'], true); + return $ar; + } + return []; + } + + public function getJsticket() + { + $jsticket = Session::get('jsticket'); + if (!$jsticket) { + $token = $this->getAccessToken($code); + $params = [ + 'access_token' => 'token', + 'type' => 'jsapi', + ]; + $ret = Http::sendRequest('https://api.weixin.qq.com/cgi-bin/ticket/getticket', $params, 'GET'); + if ($ret['ret']) { + $ar = json_decode($ret['msg'], true); + return $ar; + } + } + return $jsticket; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Contracts/GatewayInterface.php b/addons/epay/library/Yansongda/Pay/Contracts/GatewayInterface.php new file mode 100644 index 0000000..29f51e0 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Contracts/GatewayInterface.php @@ -0,0 +1,63 @@ + + * + * @param array $config_biz + * + * @return mixed + */ + public function pay(array $config_biz); + + /** + * refund a order. + * + * @author yansongda + * + * @param array|string $config_biz + * + * @return array|bool + */ + public function refund($config_biz); + + /** + * close a order. + * + * @author yansongda + * + * @param array|string $config_biz + * + * @return array|bool + */ + public function close($config_biz); + + /** + * find a order. + * + * @author yansongda + * + * @param string $out_trade_no + * + * @return array|bool + */ + public function find($out_trade_no); + + /** + * verify notify. + * + * @author yansongda + * + * @param mixed $data + * @param string $sign + * @param bool $sync + * + * @return array|bool + */ + public function verify($data, $sign = null, $sync = false); +} diff --git a/addons/epay/library/Yansongda/Pay/Exceptions/Exception.php b/addons/epay/library/Yansongda/Pay/Exceptions/Exception.php new file mode 100644 index 0000000..65ac61e --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Exceptions/Exception.php @@ -0,0 +1,7 @@ + + * + * @param string $message + * @param string|int $code + */ + public function __construct($message, $code, $raw = []) + { + parent::__construct($message, intval($code)); + + $this->raw = $raw; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Exceptions/InvalidArgumentException.php b/addons/epay/library/Yansongda/Pay/Exceptions/InvalidArgumentException.php new file mode 100644 index 0000000..4d4d52a --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Exceptions/InvalidArgumentException.php @@ -0,0 +1,7 @@ + + * + * @param array $config [description] + */ + public function __construct(array $config) + { + $this->user_config = new Config($config); + + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + $this->config = [ + 'app_id' => $this->user_config->get('app_id'), + 'method' => '', + 'format' => 'JSON', + 'charset' => 'UTF-8', + 'sign_type' => 'RSA2', + 'version' => '1.0', + 'return_url' => $this->user_config->get('return_url', ''), + 'notify_url' => $this->user_config->get('notify_url', ''), + 'timestamp' => date('Y-m-d H:i:s'), + 'sign' => '', + 'biz_content' => '', + ]; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return mixed + */ + public function pay(array $config_biz) + { + $config_biz['product_code'] = $this->getProductCode(); + + $this->config['method'] = $this->getMethod(); + $this->config['biz_content'] = json_encode($config_biz); + $this->config['sign'] = $this->getSign(); + } + + /** + * refund a order. + * + * @author yansongda + * + * @param mixed $config_biz + * + * @return array|bool + */ + public function refund($config_biz, $refund_amount = null) + { + if (!is_array($config_biz)) { + $config_biz = [ + 'out_trade_no' => $config_biz, + 'refund_amount' => $refund_amount, + ]; + } + + return $this->getResult($config_biz, 'alipay.trade.refund'); + } + + /** + * close a order. + * + * @author yansongda + * + * @param array|string $config_biz + * + * @return array|bool + */ + public function close($config_biz) + { + if (!is_array($config_biz)) { + $config_biz = [ + 'out_trade_no' => $config_biz, + ]; + } + + return $this->getResult($config_biz, 'alipay.trade.close'); + } + + /** + * find a order. + * + * @author yansongda + * + * @param string $out_trade_no + * + * @return array|bool + */ + public function find($out_trade_no = '') + { + $config_biz = [ + 'out_trade_no' => $out_trade_no, + ]; + + return $this->getResult($config_biz, 'alipay.trade.query'); + } + + /** + * verify the notify. + * + * @author yansongda + * + * @param array $data + * @param string $sign + * @param bool $sync + * + * @return array|bool + */ + public function verify($data, $sign = null, $sync = false) + { + if (is_null($this->user_config->get('ali_public_key'))) { + throw new InvalidArgumentException('Missing Config -- [ali_public_key]'); + } + + $sign = is_null($sign) ? $data['sign'] : $sign; + + $res = "-----BEGIN PUBLIC KEY-----\n". + wordwrap($this->user_config->get('ali_public_key'), 64, "\n", true). + "\n-----END PUBLIC KEY-----"; + + $toVerify = $sync ? json_encode($data) : $this->getSignContent($data, true); + + return openssl_verify($toVerify, base64_decode($sign), $res, OPENSSL_ALGO_SHA256) === 1 ? $data : false; + } + + /** + * get method config. + * + * @author yansongda + * + * @return string + */ + abstract protected function getMethod(); + + /** + * get productCode config. + * + * @author yansongda + * + * @return string + */ + abstract protected function getProductCode(); + + /** + * build pay html. + * + * @author yansongda + * + * @return string + */ + protected function buildPayHtml() + { + $sHtml = "
"; + foreach ($this->config as $key => $val) { + $val = str_replace("'", ''', $val); + $sHtml .= ""; + } + $sHtml .= "
"; + $sHtml .= ""; + + return $sHtml; + } + + /** + * get alipay api result. + * + * @author yansongda + * + * @param array $config_biz + * @param string $method + * + * @return array|bool + */ + protected function getResult($config_biz, $method) + { + $this->config['biz_content'] = json_encode($config_biz); + $this->config['method'] = $method; + $this->config['sign'] = $this->getSign(); + + $this->config = array_filter($this->config, function ($value) { + return $value !== '' && !is_null($value); + }); + + $method = str_replace('.', '_', $method).'_response'; + + $data = json_decode($this->post($this->gateway, $this->config), true); + + if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') { + throw new GatewayException( + 'get result error:'.$data[$method]['msg'].' - '.$data[$method]['sub_code'], + $data[$method]['code'], + $data); + } + + return $this->verify($data[$method], $data['sign'], true); + } + + /** + * get sign. + * + * @author yansongda + * + * @return string + */ + protected function getSign() + { + if (is_null($this->user_config->get('private_key'))) { + throw new InvalidArgumentException('Missing Config -- [private_key]'); + } + + $res = "-----BEGIN RSA PRIVATE KEY-----\n". + wordwrap($this->user_config->get('private_key'), 64, "\n", true). + "\n-----END RSA PRIVATE KEY-----"; + + openssl_sign($this->getSignContent($this->config), $sign, $res, OPENSSL_ALGO_SHA256); + + return base64_encode($sign); + } + + /** + * get signContent that is to be signed. + * + * @author yansongda + * + * @param array $toBeSigned + * @param bool $verify + * + * @return string + */ + protected function getSignContent(array $toBeSigned, $verify = false) + { + ksort($toBeSigned); + + $stringToBeSigned = ''; + foreach ($toBeSigned as $k => $v) { + if ($verify && $k != 'sign' && $k != 'sign_type') { + $stringToBeSigned .= $k.'='.$v.'&'; + } + if (!$verify && $v !== '' && !is_null($v) && $k != 'sign' && '@' != substr($v, 0, 1)) { + $stringToBeSigned .= $k.'='.$v.'&'; + } + } + $stringToBeSigned = substr($stringToBeSigned, 0, -1); + unset($k, $v); + + return $stringToBeSigned; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Alipay/AppGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/AppGateway.php new file mode 100644 index 0000000..b1861be --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/AppGateway.php @@ -0,0 +1,46 @@ + + * + * @return string + */ + protected function getMethod() + { + return 'alipay.trade.app.pay'; + } + + /** + * get productCode method. + * + * @author yansongda + * + * @return string + */ + protected function getProductCode() + { + return 'QUICK_MSECURITY_PAY'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return string + */ + public function pay(array $config_biz = []) + { + parent::pay($config_biz); + + return http_build_query($this->config); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Alipay/PosGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/PosGateway.php new file mode 100644 index 0000000..cc6c3d9 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/PosGateway.php @@ -0,0 +1,47 @@ + + * + * @return string + */ + protected function getMethod() + { + return 'alipay.trade.pay'; + } + + /** + * get productCode config. + * + * @author yansongda + * + * @return string + */ + protected function getProductCode() + { + return 'FACE_TO_FACE_PAYMENT'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * @param string $scene + * + * @return array|bool + */ + public function pay(array $config_biz = [], $scene = 'bar_code') + { + $config_biz['scene'] = $scene; + + return $this->getResult($config_biz, $this->getMethod()); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Alipay/ScanGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/ScanGateway.php new file mode 100644 index 0000000..afdff08 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/ScanGateway.php @@ -0,0 +1,44 @@ + + * + * @return string + */ + protected function getMethod() + { + return 'alipay.trade.precreate'; + } + + /** + * get productCode config. + * + * @author yansongda + * + * @return string + */ + protected function getProductCode() + { + return ''; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array|bool + */ + public function pay(array $config_biz = []) + { + return $this->getResult($config_biz, $this->getMethod()); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Alipay/TransferGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/TransferGateway.php new file mode 100644 index 0000000..2f04bb8 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/TransferGateway.php @@ -0,0 +1,44 @@ + + * + * @return string + */ + protected function getMethod() + { + return 'alipay.fund.trans.toaccount.transfer'; + } + + /** + * get productCode config. + * + * @author yansongda + * + * @return string + */ + protected function getProductCode() + { + return ''; + } + + /** + * transfer amount to account. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array|bool + */ + public function pay(array $config_biz = []) + { + return $this->getResult($config_biz, $this->getMethod()); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Alipay/WapGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/WapGateway.php new file mode 100644 index 0000000..c273c99 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/WapGateway.php @@ -0,0 +1,48 @@ + + * + * @version 2017-08-10 + * + * @return string [description] + */ + protected function getMethod() + { + return 'alipay.trade.wap.pay'; + } + + /** + * get productCode config. + * + * @author yansongda + * + * @return string + */ + protected function getProductCode() + { + return 'QUICK_WAP_WAY'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return string + */ + public function pay(array $config_biz = []) + { + parent::pay($config_biz); + + return $this->buildPayHtml(); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Alipay/WebGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/WebGateway.php new file mode 100644 index 0000000..db42cc4 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Alipay/WebGateway.php @@ -0,0 +1,46 @@ + + * + * @return string + */ + protected function getMethod() + { + return 'alipay.trade.page.pay'; + } + + /** + * get productCode config. + * + * @author yansongda + * + * @return string + */ + protected function getProductCode() + { + return 'FAST_INSTANT_TRADE_PAY'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return string + */ + public function pay(array $config_biz = []) + { + parent::pay($config_biz); + + return $this->buildPayHtml(); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/AppGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/AppGateway.php new file mode 100644 index 0000000..3db7142 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/AppGateway.php @@ -0,0 +1,50 @@ + + * + * @return string + */ + protected function getTradeType() + { + return 'APP'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('appid'))) { + throw new InvalidArgumentException('Missing Config -- [appid]'); + } + + $this->config['appid'] = $this->user_config->get('appid'); + + $payRequest = [ + 'appid' => $this->user_config->get('appid'), + 'partnerid' => $this->user_config->get('mch_id'), + 'prepayid' => $this->preOrder($config_biz)['prepay_id'], + 'timestamp' => strval(time()), + 'noncestr' => $this->createNonceStr(), + 'package' => 'Sign=WXPay', + ]; + $payRequest['sign'] = $this->getSign($payRequest); + + return $payRequest; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/GroupredpackGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/GroupredpackGateway.php new file mode 100644 index 0000000..2e76f10 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/GroupredpackGateway.php @@ -0,0 +1,82 @@ + + * + * @param array $config_biz + * + * @return mixed + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + unset($this->config['sign_type']); + unset($this->config['trade_type']); + unset($this->config['notify_url']); + unset($this->config['app_id']); + unset($this->config['appid']); + $this->config = array_merge($this->config, $config_biz); + $this->config['sign'] = $this->getSign($this->config); + $data = $this->fromXml($this->post( + $this->endpoint.$this->gateway_transfer, + $this->toXml($this->config), + [ + 'cert' => $this->user_config->get('cert_client', ''), + 'ssl_key' => $this->user_config->get('cert_key', ''), + ] + )); + if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { + $error = 'getResult error:'.$data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; + } + + if (isset($error)) { + throw new GatewayException( + $error, + 20000, + $data); + } + + return $data; + } + + /** + * get trade type config. + * + * @author yansongda + * + * @return string + */ + protected function getTradeType() + { + return ''; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/MiniappGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/MiniappGateway.php new file mode 100644 index 0000000..469212f --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/MiniappGateway.php @@ -0,0 +1,49 @@ + + * + * @return string [description] + */ + protected function getTradeType() + { + return 'JSAPI'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('miniapp_id'))) { + throw new InvalidArgumentException('Missing Config -- [miniapp_id]'); + } + + $this->config['appid'] = $this->user_config->get('miniapp_id'); + + $payRequest = [ + 'appId' => $this->user_config->get('miniapp_id'), + 'timeStamp' => strval(time()), + 'nonceStr' => $this->createNonceStr(), + 'package' => 'prepay_id='.$this->preOrder($config_biz)['prepay_id'], + 'signType' => 'MD5', + ]; + $payRequest['paySign'] = $this->getSign($payRequest); + + return $payRequest; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/MpGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/MpGateway.php new file mode 100644 index 0000000..630fb98 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/MpGateway.php @@ -0,0 +1,47 @@ + + * + * @return string + */ + protected function getTradeType() + { + return 'JSAPI'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + $payRequest = [ + 'appId' => $this->user_config->get('app_id'), + 'timeStamp' => strval(time()), + 'nonceStr' => $this->createNonceStr(), + 'package' => 'prepay_id='.$this->preOrder($config_biz)['prepay_id'], + 'signType' => 'MD5', + ]; + $payRequest['paySign'] = $this->getSign($payRequest); + + return $payRequest; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/PosGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/PosGateway.php new file mode 100644 index 0000000..ad4db75 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/PosGateway.php @@ -0,0 +1,46 @@ + + * + * @return string + */ + protected function getTradeType() + { + return 'MICROPAY'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + unset($this->config['trade_type']); + unset($this->config['notify_url']); + + return $this->preOrder($config_biz); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/RedpackGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/RedpackGateway.php new file mode 100644 index 0000000..557a92e --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/RedpackGateway.php @@ -0,0 +1,86 @@ + + * + * @param array $config_biz + * + * @return mixed + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + unset($this->config['sign_type']); + unset($this->config['trade_type']); + unset($this->config['notify_url']); + unset($this->config['app_id']); + unset($this->config['appid']); + + $this->config = array_merge($this->config, $config_biz); + + $this->config['sign'] = $this->getSign($this->config); + + $data = $this->fromXml($this->post( + $this->endpoint.$this->gateway_transfer, + $this->toXml($this->config), + [ + 'cert' => $this->user_config->get('cert_client', ''), + 'ssl_key' => $this->user_config->get('cert_key', ''), + ] + )); + + if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { + $error = 'getResult error:'.$data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; + } + + if (isset($error)) { + throw new GatewayException( + $error, + 20000, + $data); + } + + return $data; + } + + /** + * get trade type config. + * + * @author yansongda + * + * @return string + */ + protected function getTradeType() + { + return ''; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/ScanGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/ScanGateway.php new file mode 100644 index 0000000..dcd5c89 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/ScanGateway.php @@ -0,0 +1,38 @@ + + * + * @return string + */ + protected function getTradeType() + { + return 'NATIVE'; + } + + /** + * pay a order using modelTWO. + * + * @author yansongda + * + * @param array $config_biz + * + * @return string + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + return $this->preOrder($config_biz)['code_url']; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/TransferGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/TransferGateway.php new file mode 100644 index 0000000..c089dbb --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/TransferGateway.php @@ -0,0 +1,78 @@ + + * + * @return string + */ + protected function getTradeType() + { + return ''; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + $config_biz['mch_appid'] = $this->config['appid']; + $config_biz['mchid'] = $this->config['mch_id']; + + unset($this->config['appid']); + unset($this->config['mch_id']); + unset($this->config['sign_type']); + unset($this->config['trade_type']); + unset($this->config['notify_url']); + + $this->config = array_merge($this->config, $config_biz); + + $this->config['sign'] = $this->getSign($this->config); + + $data = $this->fromXml($this->post( + $this->endpoint.$this->gateway_transfer, + $this->toXml($this->config), + [ + 'cert' => $this->user_config->get('cert_client', ''), + 'ssl_key' => $this->user_config->get('cert_key', ''), + ] + )); + + if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { + $error = 'getResult error:'.$data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; + } + + if (isset($error)) { + throw new GatewayException( + $error, + 20000, + $data); + } + + return $data; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/WapGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/WapGateway.php new file mode 100644 index 0000000..952abcc --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/WapGateway.php @@ -0,0 +1,41 @@ + + * + * @return string + */ + protected function getTradeType() + { + return 'MWEB'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return string + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + $data = $this->preOrder($config_biz); + + return is_null($this->user_config->get('return_url')) ? $data['mweb_url'] : $data['mweb_url']. + '&redirect_url='.urlencode($this->user_config->get('return_url')); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/WebGateway.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/WebGateway.php new file mode 100644 index 0000000..79f7bb8 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/WebGateway.php @@ -0,0 +1,69 @@ + + * + * @return string + */ + protected function getTradeType() + { + return 'NATIVE'; + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return string + */ + public function pay(array $config_biz = []) + { + if (is_null($this->user_config->get('app_id'))) { + throw new InvalidArgumentException('Missing Config -- [app_id]'); + } + + $code_url = $this->preOrder($config_biz)['code_url']; + $params = [ + 'body' => $config_biz['body'], + 'code_url' => $code_url, + 'out_trade_no' => $config_biz['out_trade_no'], + 'return_url' => $this->user_config->get('return_url'), + 'total_fee' => $config_biz['total_fee'], + ]; + $params['sign'] = md5(implode('', $params) . $this->user_config->get('app_id')); + $endpoint = addon_url("epay/api/wechat"); + + return $this->buildPayHtml($endpoint, $params); + } + + /** + * build pay html. + * + * @author yansongda + * + * @return string + */ + protected function buildPayHtml($endpoint, $params) + { + $sHtml = "
"; + foreach ($params as $key => $val) { + $val = str_replace("'", ''', $val); + $sHtml .= ""; + } + $sHtml .= "
"; + $sHtml .= ""; + + return $sHtml; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Gateways/Wechat/Wechat.php b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/Wechat.php new file mode 100644 index 0000000..9b1d04a --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Gateways/Wechat/Wechat.php @@ -0,0 +1,354 @@ + + * + * @param array $config + */ + public function __construct(array $config) + { + $this->user_config = new Config($config); + + $this->config = [ + 'appid' => $this->user_config->get('app_id', ''), + 'mch_id' => $this->user_config->get('mch_id', ''), + 'nonce_str' => $this->createNonceStr(), + 'sign_type' => 'MD5', + 'notify_url' => $this->user_config->get('notify_url', ''), + 'trade_type' => $this->getTradeType(), + ]; + + if ($endpoint = $this->user_config->get('endpoint_url')) { + $this->endpoint = $endpoint; + } + } + + /** + * pay a order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return mixed + */ + abstract public function pay(array $config_biz = []); + + /** + * refund. + * + * @author yansongda + * + * @return string|bool + */ + public function refund($config_biz = []) + { + if (isset($config_biz['miniapp'])) { + $this->config['appid'] = $this->user_config->get('miniapp_id'); + unset($config_biz['miniapp']); + } + + $this->config = array_merge($this->config, $config_biz); + + $this->unsetTradeTypeAndNotifyUrl(); + + return $this->getResult($this->gateway_refund, true); + } + + /** + * close a order. + * + * @author yansongda + * + * @return array|bool + */ + public function close($out_trade_no = '') + { + $this->config['out_trade_no'] = $out_trade_no; + + $this->unsetTradeTypeAndNotifyUrl(); + + return $this->getResult($this->gateway_close); + } + + /** + * find a order. + * + * @author yansongda + * + * @param string $out_trade_no + * + * @return array|bool + */ + public function find($out_trade_no = '') + { + $this->config['out_trade_no'] = $out_trade_no; + + $this->unsetTradeTypeAndNotifyUrl(); + + return $this->getResult($this->gateway_query); + } + + /** + * verify the notify. + * + * @author yansongda + * + * @param string $data + * @param string $sign + * @param bool $sync + * + * @return array|bool + */ + public function verify($data, $sign = null, $sync = false) + { + $data = $this->fromXml($data); + + $sign = is_null($sign) ? $data['sign'] : $sign; + + return $this->getSign($data) === $sign ? $data : false; + } + + /** + * get trade type config. + * + * @author yansongda + * + * @return string + */ + abstract protected function getTradeType(); + + /** + * pre order. + * + * @author yansongda + * + * @param array $config_biz + * + * @return array + */ + protected function preOrder($config_biz = []) + { + $this->config = array_merge($this->config, $config_biz); + + return $this->getResult($this->gateway_order); + } + + /** + * get api result. + * + * @author yansongda + * + * @param string $path + * @param bool $cert + * + * @return array + */ + protected function getResult($path, $cert = false) + { + $this->config['sign'] = $this->getSign($this->config); + + if ($cert) { + $data = $this->fromXml($this->post( + $this->endpoint.$path, + $this->toXml($this->config), + [ + 'cert' => $this->user_config->get('cert_client', ''), + 'ssl_key' => $this->user_config->get('cert_key', ''), + ] + )); + } else { + $data = $this->fromXml($this->post($this->endpoint.$path, $this->toXml($this->config))); + } + + if (!isset($data['return_code']) || $data['return_code'] !== 'SUCCESS' || $data['result_code'] !== 'SUCCESS') { + $error = 'getResult error:'.$data['return_msg']; + $error .= isset($data['err_code_des']) ? ' - '.$data['err_code_des'] : ''; + } + + if (!isset($error) && $this->getSign($data) !== $data['sign']) { + $error = 'getResult error: return data sign error'; + } + + if (isset($error)) { + throw new GatewayException( + $error, + 20000, + $data); + } + + return $data; + } + + /** + * sign. + * + * @author yansongda + * + * @param array $data + * + * @return string + */ + protected function getSign($data) + { + if (is_null($this->user_config->get('key'))) { + throw new InvalidArgumentException('Missing Config -- [key]'); + } + + ksort($data); + + $string = md5($this->getSignContent($data).'&key='.$this->user_config->get('key')); + + return strtoupper($string); + } + + /** + * get sign content. + * + * @author yansongda + * + * @param array $data + * + * @return string + */ + protected function getSignContent($data) + { + $buff = ''; + + foreach ($data as $k => $v) { + $buff .= ($k != 'sign' && $v != '' && !is_array($v)) ? $k.'='.$v.'&' : ''; + } + + return trim($buff, '&'); + } + + /** + * create random string. + * + * @author yansongda + * + * @param int $length + * + * @return string + */ + protected function createNonceStr($length = 16) + { + $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; + + $str = ''; + for ($i = 0; $i < $length; $i++) { + $str .= substr($chars, mt_rand(0, strlen($chars) - 1), 1); + } + + return $str; + } + + /** + * convert to xml. + * + * @author yansongda + * + * @param array $data + * + * @return string + */ + protected function toXml($data) + { + if (!is_array($data) || count($data) <= 0) { + throw new InvalidArgumentException('convert to xml error!invalid array!'); + } + + $xml = ''; + foreach ($data as $key => $val) { + $xml .= is_numeric($val) ? '<'.$key.'>'.$val.'' : + '<'.$key.'>'; + } + $xml .= ''; + + return $xml; + } + + /** + * convert to array. + * + * @author yansongda + * + * @param string $xml + * + * @return array + */ + protected function fromXml($xml) + { + if (!$xml) { + throw new InvalidArgumentException('convert to array error !invalid xml'); + } + + libxml_disable_entity_loader(true); + + return json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA), JSON_UNESCAPED_UNICODE), true); + } + + /** + * delete trade_type and notify_url. + * + * @author yansongda + * + * @return bool + */ + protected function unsetTradeTypeAndNotifyUrl() + { + unset($this->config['notify_url']); + unset($this->config['trade_type']); + + return true; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Pay.php b/addons/epay/library/Yansongda/Pay/Pay.php new file mode 100644 index 0000000..0c91379 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Pay.php @@ -0,0 +1,134 @@ + + * + * @param array $config + */ + public function __construct(array $config = []) + { + $this->config = new Config($config); + } + + /** + * set pay's driver. + * + * @author JasonYan + * + * @param string $driver + * + * @return Pay + */ + public function driver($driver) + { + if (is_null($this->config->get($driver))) { + throw new InvalidArgumentException("Driver [$driver]'s Config is not defined."); + } + + $this->drivers = $driver; + + return $this; + } + + /** + * set pay's gateway. + * + * @author yansongda + * + * @param string $gateway + * + * @return \Yansongda\Pay\Contracts\GatewayInterface + */ + public function gateway($gateway = 'web') + { + if (!isset($this->drivers)) { + throw new InvalidArgumentException('Driver is not defined.'); + } + + $this->gateways = $this->createGateway($gateway); + + return $this->gateways; + } + + /** + * create pay's gateway. + * + * @author yansongda + * + * @param string $gateway + * + * @return \Yansongda\Pay\Contracts\GatewayInterface + */ + protected function createGateway($gateway) + { + if (!file_exists(__DIR__ . '/Gateways/' . ucfirst($this->drivers) . '/' . ucfirst($gateway) . 'Gateway.php')) { + throw new InvalidArgumentException("Gateway [$gateway] is not supported."); + } + + $gateway = __NAMESPACE__ . '\\Gateways\\' . ucfirst($this->drivers) . '\\' . ucfirst($gateway) . 'Gateway'; + + return $this->build($gateway); + } + + /** + * build pay's gateway. + * + * @author JasonYan + * + * @param string $gateway + * + * @return \Yansongda\Pay\Contracts\GatewayInterface + */ + protected function build($gateway) + { + return new $gateway($this->config->get($this->drivers)); + } + + public function verify() + { + if ($this->drivers == 'wechat') { + return $this->gateway()->verify(file_get_contents("php://input")); + } else { + $request = request(); + $data = $request->get('app_id') && $request->get('out_trade_no') ? $request->get('', null, 'trim') : $request->post('', null, 'trim'); + return $this->gateway()->verify($data); + } + } + + public function success() + { + if ($this->drivers == 'wechat') { + echo ' + + +'; + } else { + echo 'success'; + } + return; + } +} diff --git a/addons/epay/library/Yansongda/Pay/Support/Config.php b/addons/epay/library/Yansongda/Pay/Support/Config.php new file mode 100644 index 0000000..df4a9c4 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Support/Config.php @@ -0,0 +1,147 @@ +config = $config; + } + + /** + * get a config. + * + * @author JasonYan + * + * @param string $key + * @param string $default + * + * @return mixed + */ + public function get($key = null, $default = null) + { + $config = $this->config; + + if (is_null($key)) { + return $config; + } + + if (isset($config[$key])) { + return $config[$key]; + } + + foreach (explode('.', $key) as $segment) { + if (!is_array($config) || !array_key_exists($segment, $config)) { + return $default; + } + $config = $config[$segment]; + } + + return $config; + } + + /** + * set a config. + * + * @author JasonYan + * + * @param string $key + * @param array $value + */ + public function set(string $key, $value) + { + if ($key == '') { + throw new InvalidArgumentException('Invalid config key.'); + } + + // 只支持三维数组,多余无意义 + $keys = explode('.', $key); + switch (count($keys)) { + case '1': + $this->config[$key] = $value; + break; + case '2': + $this->config[$keys[0]][$keys[1]] = $value; + break; + case '3': + $this->config[$keys[0]][$keys[1]][$keys[2]] = $value; + break; + + default: + throw new InvalidArgumentException('Invalid config key.'); + } + + return $this->config; + } + + /** + * [offsetExists description]. + * + * @author JasonYan + * + * @param string $offset + * + * @return bool + */ + public function offsetExists($offset) + { + return array_key_exists($offset, $this->config); + } + + /** + * [offsetGet description]. + * + * @author JasonYan + * + * @param string $offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return $this->get($offset); + } + + /** + * [offsetSet description]. + * + * @author JasonYan + * + * @param string $offset + * @param string $value + * + * @return array + */ + public function offsetSet($offset, $value) + { + $this->set($offset, $value); + } + + /** + * [offsetUnset description]. + * + * @author JasonYan + * + * @param string $offset + * + * @return array + */ + public function offsetUnset($offset) + { + $this->set($offset, null); + } +} diff --git a/addons/epay/library/Yansongda/Pay/Traits/HasHttpRequest.php b/addons/epay/library/Yansongda/Pay/Traits/HasHttpRequest.php new file mode 100644 index 0000000..2f5c212 --- /dev/null +++ b/addons/epay/library/Yansongda/Pay/Traits/HasHttpRequest.php @@ -0,0 +1,119 @@ + + * + * Modified By yansongda + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace Yansongda\Pay\Traits; + +use GuzzleHttp\Client; +use Psr\Http\Message\ResponseInterface; + +trait HasHttpRequest +{ + /** + * Make a get request. + * + * @param string $endpoint + * @param array $query + * @param array $headers + * + * @return array + */ + protected function get($endpoint, $query = [], $headers = []) + { + return $this->request('get', $endpoint, [ + 'headers' => $headers, + 'query' => $query, + ]); + } + + /** + * Make a post request. + * + * @param string $endpoint + * @param mixed $params + * @param array $options + * + * @return string + */ + protected function post($endpoint, $params = [], ...$options) + { + $options = isset($options[0]) ? $options[0] : []; + + if (!is_array($params)) { + $options['body'] = $params; + } else { + $options['form_params'] = $params; + } + + return $this->request('post', $endpoint, $options); + } + + /** + * Make a http request. + * + * @param string $method + * @param string $endpoint + * @param array $options http://docs.guzzlephp.org/en/latest/request-options.html + * + * @return array + */ + protected function request($method, $endpoint, $options = []) + { + return $this->unwrapResponse($this->getHttpClient($this->getBaseOptions())->{$method}($endpoint, $options)); + } + + /** + * Return base Guzzle options. + * + * @return array + */ + protected function getBaseOptions() + { + $options = [ + 'base_uri' => method_exists($this, 'getBaseUri') ? $this->getBaseUri() : '', + 'timeout' => property_exists($this, 'timeout') ? $this->timeout : 5.0, + ]; + + return $options; + } + + /** + * Return http client. + * + * @param array $options + * + * @return \GuzzleHttp\Client + */ + protected function getHttpClient(array $options = []) + { + return new Client($options); + } + + /** + * Convert response contents to json. + * + * @param \Psr\Http\Message\ResponseInterface $response + * + * @return array + */ + protected function unwrapResponse(ResponseInterface $response) + { + $contentType = $response->getHeaderLine('Content-Type'); + $contents = $response->getBody()->getContents(); + + if (false !== stripos($contentType, 'json') || stripos($contentType, 'javascript')) { + return json_decode($contents, true); + } elseif (false !== stripos($contentType, 'xml')) { + return json_decode(json_encode(simplexml_load_string($contents)), true); + } + + return $contents; + } +} diff --git a/addons/epay/view/api/wechat.html b/addons/epay/view/api/wechat.html new file mode 100644 index 0000000..a4727d0 --- /dev/null +++ b/addons/epay/view/api/wechat.html @@ -0,0 +1,86 @@ + + +{if $type=='jsapi'} +
+
+
+ + +
+
+
+ +{elseif $type=='pc' /} +
+
+
+
+

+ 微信支付 +
+ 请在 60 秒内完成支付 +
+

+ +
+
+
+
+

订单标题:{$data.body}

+

订单编号:{$data.out_trade_no}

+

订单价格:¥{$data.total_fee/100}

+
+
+ + + +
+
+

请使用微信扫一扫
扫描二维码支付

+
+
+
+
+ +
+
+
+
+ +
+ + +{/if} \ No newline at end of file diff --git a/addons/epay/view/index/index.html b/addons/epay/view/index/index.html new file mode 100644 index 0000000..ee01036 --- /dev/null +++ b/addons/epay/view/index/index.html @@ -0,0 +1,212 @@ + + + + +
+ +
+
+ +
+
+
+
+

准备工作

+
+ +
+
+
+
+
+

开发工作

+
+
+

在你的PHP代码中调用相关代码进行支付,请参考控制器代码

+

目前FastAdmin中已经支持 + CMS内容管理系统、 + 会员充值插件、 + 知识问答系统 + 支持无缝接入此插件

+ 查看文档 +
+
+
+
+
+
+

立即体验

+
+
+

请选择对应的支付金额和支付方式

+

+ + + + + + +

+ + +
+
+
+
+ + + + + +
+ + +
+
+
+

感谢你对FastAdmin的支持!如果你在使用FastAdmin开发插件的过程中有任何疑问或需要寻求帮助,请前往FastAdmin交流社区与小伙伴们一起交流。

+
+ +
+
+ +
+ +
\ No newline at end of file diff --git a/addons/epay/view/layout/default.html b/addons/epay/view/layout/default.html new file mode 100644 index 0000000..dcc7803 --- /dev/null +++ b/addons/epay/view/layout/default.html @@ -0,0 +1,115 @@ + + + + + + + + + + + + {$title} - FastAdmin + + + + + + + + + + + + + + + + + + + + + +{__CONTENT__} + +
+ +
+
+
+
+

Copyright © FastAdmin 2017-1019

+
+
+
+ +
+ + + + + + + + + + + + + + + diff --git a/application/extra/addons.php b/application/extra/addons.php index 2d7169d..44cb562 100644 --- a/application/extra/addons.php +++ b/application/extra/addons.php @@ -6,7 +6,8 @@ return array ( array ( 'app_init' => array ( - 0 => 'unishop', + 0 => 'epay', + 1 => 'unishop', ), ), 'route' => diff --git a/public/assets/addons/epay/css/common.css b/public/assets/addons/epay/css/common.css new file mode 100644 index 0000000..2157aea --- /dev/null +++ b/public/assets/addons/epay/css/common.css @@ -0,0 +1,91 @@ +/*! + * Start Bootstrap - Modern Business (http://startbootstrap.com/) + * Copyright 2013-2016 Start Bootstrap + * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE) + */ +/* Global Styles */ +html, +body { + height: 100%; +} +body { + padding-top: 50px; + /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; +} +.img-addon { + margin-bottom: 10px; + width: 100%; +} +.img-hover:hover { + opacity: 0.8; +} +.display-1 { + font-size: 44px; +} +.display-4 { + font-size: 24px; + line-height: 32px; +} +/* Home Page Carousel */ +header.carousel { + height: 50%; +} +header.carousel .item, +header.carousel .item.active, +header.carousel .carousel-inner { + height: 100%; +} +header.carousel .fill { + width: 100%; + height: 100%; +} +.error-404 { + font-size: 100px; +} +/* Pricing Page Styles */ +.price { + display: block; + font-size: 50px; + line-height: 50px; +} +.price sup { + top: -20px; + left: 2px; + font-size: 20px; +} +.period { + display: block; + font-style: italic; +} +/* Footer Styles */ +footer { + margin: 50px 0; +} +/* Responsive Styles */ +@media (max-width: 991px) { + .customer-img, + .img-related { + margin-bottom: 30px; + } +} +@media (max-width: 767px) { + .img-addon { + margin-bottom: 15px; + } + header.carousel .carousel { + height: 70%; + } +} +.carousel-body { + position: absolute; + width: 100%; + top: 25%; + text-align: center; + color: #fff; +} +.addonlist a > p { + margin-bottom: 15px; +} diff --git a/public/assets/addons/epay/css/epay.css b/public/assets/addons/epay/css/epay.css new file mode 100644 index 0000000..dccff65 --- /dev/null +++ b/public/assets/addons/epay/css/epay.css @@ -0,0 +1,20 @@ +@import url("../../../css/bootstrap.min.css"); +@import url("../../../libs/font-awesome/css/font-awesome.min.css"); +html, +body { + height: 100%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-weight: 400; + overflow-x: hidden; + overflow-y: auto; + background: #f4f6f8; + font-size: 14px; + color: #616161; +} +.container { + max-width: 850px; + margin: 0 auto; + padding: 50px; +} diff --git a/public/assets/addons/epay/css/wechat.css b/public/assets/addons/epay/css/wechat.css new file mode 100644 index 0000000..8c8aafe --- /dev/null +++ b/public/assets/addons/epay/css/wechat.css @@ -0,0 +1,100 @@ +.wechat { + margin-top: 30px; +} + +.wechat h2 { + margin: 0 0 15px 0; + padding-bottom: 15px; + border-bottom: 1px solid #eee; + position: relative; +} + +.wechat-body { +} + +.wechat-qrcode { + margin-bottom: 20px; + position: relative; +} + +.wechat-qrcode img { + width: 100%; + border: 1px solid #eee; +} + +.wechat-qrcode .expired { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + opacity: .95; + background: #fff url(../images/expired.png) center center no-repeat; +} + +.wechat-qrcode .paid { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + opacity: .95; + background: #fff url(../images/paid.png) center center no-repeat; +} + +.wechat-scan { + padding: 0; +} + +.wechat-scan img { + width: 100%; +} + +.wechat-tips { + height: 60px; + padding: 8px 0 8px 125px; + background: #00c800 url(../images/scan.png) 50px 12px no-repeat; + background-size: 36px 36px; +} + +.wechat-tips p { + margin: 0; + font-size: 14px; + line-height: 22px; + color: #fff; + font-weight: 700 +} + +.wechat-time { + font-size: 14px; + margin-bottom: 15px; + position: absolute; + top: 15px; + right: 10px; + font-weight: normal; + display: none; +} + +.wechat-time span { + color: red; +} + +.wechat-order { + margin-bottom: 5px; +} + +.wechat-order em { + font-style: normal; + color: #666; +} + +.wechat-order em.wechat-price { + color: #ff3333; + font-weight: bold; +} + +@media (max-width: 767px) { + .wechat { + margin-top: 20px; + } +} \ No newline at end of file diff --git a/public/assets/addons/epay/images/alipay.png b/public/assets/addons/epay/images/alipay.png new file mode 100644 index 0000000..8831c35 Binary files /dev/null and b/public/assets/addons/epay/images/alipay.png differ diff --git a/public/assets/addons/epay/images/expired.png b/public/assets/addons/epay/images/expired.png new file mode 100644 index 0000000..febcae1 Binary files /dev/null and b/public/assets/addons/epay/images/expired.png differ diff --git a/public/assets/addons/epay/images/logo-alipay.png b/public/assets/addons/epay/images/logo-alipay.png new file mode 100644 index 0000000..7a8f23c Binary files /dev/null and b/public/assets/addons/epay/images/logo-alipay.png differ diff --git a/public/assets/addons/epay/images/logo-wechat.png b/public/assets/addons/epay/images/logo-wechat.png new file mode 100644 index 0000000..3d65617 Binary files /dev/null and b/public/assets/addons/epay/images/logo-wechat.png differ diff --git a/public/assets/addons/epay/images/logo.png b/public/assets/addons/epay/images/logo.png new file mode 100644 index 0000000..d76d7ca Binary files /dev/null and b/public/assets/addons/epay/images/logo.png differ diff --git a/public/assets/addons/epay/images/paid.png b/public/assets/addons/epay/images/paid.png new file mode 100644 index 0000000..4f04f12 Binary files /dev/null and b/public/assets/addons/epay/images/paid.png differ diff --git a/public/assets/addons/epay/images/scan.png b/public/assets/addons/epay/images/scan.png new file mode 100644 index 0000000..203727c Binary files /dev/null and b/public/assets/addons/epay/images/scan.png differ diff --git a/public/assets/addons/epay/images/tips.png b/public/assets/addons/epay/images/tips.png new file mode 100644 index 0000000..093cc6f Binary files /dev/null and b/public/assets/addons/epay/images/tips.png differ diff --git a/public/assets/addons/epay/images/wechat.png b/public/assets/addons/epay/images/wechat.png new file mode 100644 index 0000000..6737169 Binary files /dev/null and b/public/assets/addons/epay/images/wechat.png differ diff --git a/public/assets/addons/epay/js/common.js b/public/assets/addons/epay/js/common.js new file mode 100644 index 0000000..f353e70 --- /dev/null +++ b/public/assets/addons/epay/js/common.js @@ -0,0 +1,52 @@ +$(function () { + $('.carousel').carousel({ + interval: 5000 //changes the speed + }); + $(".btn-experience").on("click", function () { + location.href = "/addons/epay/index/experience?amount=" + $("input[name=amount]").val() + "&type=" + $(this).data("type") + "&method=" + $("#method").val(); + }); + + var si, xhr; + if (typeof queryParams != 'undefined') { + var queryResult = function () { + xhr && xhr.abort(); + xhr = $.ajax({ + url: "", + type: "post", + data: queryParams, + dataType: 'json', + success: function (ret) { + if (ret.code == 1) { + var data = ret.data; + console.log(data); + if (typeof data.trade_state != 'undefined') { + if (data.trade_state == 'SUCCESS') { + $(".wechat-qrcode .paid").removeClass("hidden"); + $(".wechat-tips p").html("支付成功!
3秒后将自动跳转..."); + setTimeout(function () { + location.href = queryParams.return_url; + }, 3000); + clearInterval(si); + } else if (data.trade_state == 'REFUND') { + $(".wechat-tips p").html("请求失败!
请返回重新发起支付"); + clearInterval(si); + } else if (data.trade_state == 'NOTPAY') { + } else if (data.trade_state == 'CLOSED') { + $(".wechat-tips p").html("订单已关闭!
请返回重新发起支付"); + clearInterval(si); + } else if (data.trade_state == 'USERPAYING') { + } else if (data.trade_state == 'PAYERROR') { + clearInterval(si); + } + } + } + } + }); + }; + si = setInterval(function () { + queryResult(); + }, 3000); + queryResult(); + } + +}); \ No newline at end of file diff --git a/public/assets/addons/epay/less/common.less b/public/assets/addons/epay/less/common.less new file mode 100644 index 0000000..116feac --- /dev/null +++ b/public/assets/addons/epay/less/common.less @@ -0,0 +1,113 @@ +/*! + * Start Bootstrap - Modern Business (http://startbootstrap.com/) + * Copyright 2013-2016 Start Bootstrap + * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE) + */ + +/* Global Styles */ + +html, +body { + height: 100%; +} + +body { + padding-top: 50px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + +} + +.img-addon { + margin-bottom: 10px; + width:100%; +} + +.img-hover:hover { + opacity: 0.8; +} + +.display-1 { + font-size:44px; +} +.display-4 { + font-size:24px; + line-height:32px; +} + +/* Home Page Carousel */ + +header.carousel { + height: 50%; +} + +header.carousel .item, +header.carousel .item.active, +header.carousel .carousel-inner { + height: 100%; +} + +header.carousel .fill { + width: 100%; + height: 100%; +} + +.error-404 { + font-size: 100px; +} + +/* Pricing Page Styles */ + +.price { + display: block; + font-size: 50px; + line-height: 50px; +} + +.price sup { + top: -20px; + left: 2px; + font-size: 20px; +} + +.period { + display: block; + font-style: italic; +} + +/* Footer Styles */ + +footer { + margin: 50px 0; +} + +/* Responsive Styles */ + +@media(max-width:991px) { + .customer-img, + .img-related { + margin-bottom: 30px; + } +} + +@media(max-width:767px) { + .img-addon { + margin-bottom: 15px; + } + + header.carousel .carousel { + height: 70%; + } +} +.carousel-body { + position:absolute; + width: 100%; + top:25%; + text-align:center; + color:#fff; +} + +.addonlist a > p{ + margin-bottom:15px; +} diff --git a/public/assets/addons/epay/less/epay.less b/public/assets/addons/epay/less/epay.less new file mode 100644 index 0000000..028eca1 --- /dev/null +++ b/public/assets/addons/epay/less/epay.less @@ -0,0 +1,28 @@ +@import (reference) "../../../../public/assets/less/bootstrap-less/mixins.less"; +@import (reference) "../../../../public/assets/less/bootstrap-less/variables.less"; +@import (reference) "../../../../public/assets/less/fastadmin/mixins.less"; +@import (reference) "../../../../public/assets/less/fastadmin/variables.less"; +@import "../../../../public/assets/less/lesshat.less"; +@import url("../../../css/bootstrap.min.css"); +@import url("../../../libs/font-awesome/css/font-awesome.min.css"); + +html, +body { + height: 100%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-weight: 400; + overflow-x: hidden; + overflow-y: auto; + background: #f4f6f8; + font-size: 14px; + color: #616161; + +} + +.container { + max-width: 850px; + margin: 0 auto; + padding:50px; +} diff --git a/runtime/cache/4e/819c837d54a6ed09abc77a8560a66f.php b/runtime/cache/4e/819c837d54a6ed09abc77a8560a66f.php deleted file mode 100644 index 2c81fbe..0000000 --- a/runtime/cache/4e/819c837d54a6ed09abc77a8560a66f.php +++ /dev/null @@ -1,4 +0,0 @@ - -a:1:{s:8:"app_init";a:1:{i:0;s:23:"\addons\unishop\Unishop";}} \ No newline at end of file diff --git a/runtime/cache/cb/78ef4a9130f39208ff10858ddd8377.php b/runtime/cache/cb/78ef4a9130f39208ff10858ddd8377.php deleted file mode 100644 index ff910c4..0000000 --- a/runtime/cache/cb/78ef4a9130f39208ff10858ddd8377.php +++ /dev/null @@ -1,8 +0,0 @@ - -a:27:{i:0;a:13:{s:2:"id";i:1;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:9:"dashboard";s:5:"title";s:9:"Dashboard";s:4:"icon";s:15:"fa fa-dashboard";s:9:"condition";s:0:"";s:6:"remark";s:14:"Dashboard tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497429920;s:5:"weigh";i:143;s:6:"status";s:6:"normal";}i:1;a:13:{s:2:"id";i:2;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:7:"general";s:5:"title";s:7:"General";s:4:"icon";s:10:"fa fa-cogs";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430169;s:5:"weigh";i:137;s:6:"status";s:6:"normal";}i:2;a:13:{s:2:"id";i:3;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:8:"category";s:5:"title";s:8:"Category";s:4:"icon";s:10:"fa fa-leaf";s:9:"condition";s:0:"";s:6:"remark";s:13:"Category tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497429920;s:5:"weigh";i:119;s:6:"status";s:6:"normal";}i:3;a:13:{s:2:"id";i:9;s:4:"type";s:4:"file";s:3:"pid";i:5;s:4:"name";s:10:"auth/admin";s:5:"title";s:5:"Admin";s:4:"icon";s:10:"fa fa-user";s:9:"condition";s:0:"";s:6:"remark";s:10:"Admin tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430320;s:5:"weigh";i:118;s:6:"status";s:6:"normal";}i:4;a:13:{s:2:"id";i:10;s:4:"type";s:4:"file";s:3:"pid";i:5;s:4:"name";s:13:"auth/adminlog";s:5:"title";s:9:"Admin log";s:4:"icon";s:14:"fa fa-list-alt";s:9:"condition";s:0:"";s:6:"remark";s:14:"Admin log tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430307;s:5:"weigh";i:113;s:6:"status";s:6:"normal";}i:5;a:13:{s:2:"id";i:11;s:4:"type";s:4:"file";s:3:"pid";i:5;s:4:"name";s:10:"auth/group";s:5:"title";s:5:"Group";s:4:"icon";s:11:"fa fa-group";s:9:"condition";s:0:"";s:6:"remark";s:10:"Group tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497429920;s:5:"weigh";i:109;s:6:"status";s:6:"normal";}i:6;a:13:{s:2:"id";i:12;s:4:"type";s:4:"file";s:3:"pid";i:5;s:4:"name";s:9:"auth/rule";s:5:"title";s:4:"Rule";s:4:"icon";s:10:"fa fa-bars";s:9:"condition";s:0:"";s:6:"remark";s:9:"Rule tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430581;s:5:"weigh";i:104;s:6:"status";s:6:"normal";}i:7;a:13:{s:2:"id";i:5;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:4:"auth";s:5:"title";s:4:"Auth";s:4:"icon";s:11:"fa fa-group";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430092;s:5:"weigh";i:99;s:6:"status";s:6:"normal";}i:8;a:13:{s:2:"id";i:6;s:4:"type";s:4:"file";s:3:"pid";i:2;s:4:"name";s:14:"general/config";s:5:"title";s:6:"Config";s:4:"icon";s:9:"fa fa-cog";s:9:"condition";s:0:"";s:6:"remark";s:11:"Config tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430683;s:5:"weigh";i:60;s:6:"status";s:6:"normal";}i:9;a:13:{s:2:"id";i:7;s:4:"type";s:4:"file";s:3:"pid";i:2;s:4:"name";s:18:"general/attachment";s:5:"title";s:10:"Attachment";s:4:"icon";s:18:"fa fa-file-image-o";s:9:"condition";s:0:"";s:6:"remark";s:15:"Attachment tips";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497430699;s:5:"weigh";i:53;s:6:"status";s:6:"normal";}i:10;a:13:{s:2:"id";i:8;s:4:"type";s:4:"file";s:3:"pid";i:2;s:4:"name";s:15:"general/profile";s:5:"title";s:7:"Profile";s:4:"icon";s:10:"fa fa-user";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1497429920;s:10:"updatetime";i:1497429920;s:5:"weigh";i:34;s:6:"status";s:6:"normal";}i:11;a:13:{s:2:"id";i:4;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:5:"addon";s:5:"title";s:5:"Addon";s:4:"icon";s:12:"fa fa-rocket";s:9:"condition";s:0:"";s:6:"remark";s:10:"Addon tips";s:6:"ismenu";i:1;s:10:"createtime";i:1502035509;s:10:"updatetime";i:1502035509;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:12;a:13:{s:2:"id";i:66;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:4:"user";s:5:"title";s:4:"User";s:4:"icon";s:10:"fa fa-list";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1516374729;s:10:"updatetime";i:1516374729;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:13;a:13:{s:2:"id";i:67;s:4:"type";s:4:"file";s:3:"pid";i:66;s:4:"name";s:9:"user/user";s:5:"title";s:4:"User";s:4:"icon";s:10:"fa fa-user";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1516374729;s:10:"updatetime";i:1516374729;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:14;a:13:{s:2:"id";i:73;s:4:"type";s:4:"file";s:3:"pid";i:66;s:4:"name";s:10:"user/group";s:5:"title";s:10:"User group";s:4:"icon";s:11:"fa fa-users";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1516374729;s:10:"updatetime";i:1516374729;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:15;a:13:{s:2:"id";i:79;s:4:"type";s:4:"file";s:3:"pid";i:66;s:4:"name";s:9:"user/rule";s:5:"title";s:9:"User rule";s:4:"icon";s:14:"fa fa-circle-o";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1516374729;s:10:"updatetime";i:1516374729;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:16;a:13:{s:2:"id";i:160;s:4:"type";s:4:"file";s:3:"pid";i:0;s:4:"name";s:7:"unishop";s:5:"title";s:12:"喂喂商城";s:4:"icon";s:18:"fa fa-font-awesome";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:17;a:13:{s:2:"id";i:161;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:11:"unishop/ads";s:5:"title";s:15:"广告图管理";s:4:"icon";s:16:"fa fa-buysellads";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:18;a:13:{s:2:"id";i:167;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:16:"unishop/category";s:5:"title";s:12:"分类管理";s:4:"icon";s:19:"fa fa-align-justify";s:9:"condition";s:0:"";s:6:"remark";s:39:"注意:产品只支持二级分类。";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:19;a:13:{s:2:"id";i:173;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:15:"unishop/product";s:5:"title";s:12:"产品管理";s:4:"icon";s:18:"fa fa-product-hunt";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:20;a:13:{s:2:"id";i:183;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:16:"unishop/delivery";s:5:"title";s:12:"运费模板";s:4:"icon";s:15:"fa fa-delicious";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:21;a:13:{s:2:"id";i:189;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:14:"unishop/config";s:5:"title";s:12:"系统配置";s:4:"icon";s:17:"fa fa-certificate";s:9:"condition";s:0:"";s:6:"remark";s:75:"更新配置缓存不会立即生效,如需立即生效请清空缓存。";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:22;a:13:{s:2:"id";i:195;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:14:"unishop/market";s:5:"title";s:12:"营销中心";s:4:"icon";s:10:"fa fa-list";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:23;a:13:{s:2:"id";i:196;s:4:"type";s:4:"file";s:3:"pid";i:195;s:4:"name";s:21:"unishop/market/coupon";s:5:"title";s:15:"优惠券管理";s:4:"icon";s:14:"fa fa-gratipay";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:24;a:13:{s:2:"id";i:205;s:4:"type";s:4:"file";s:3:"pid";i:195;s:4:"name";s:25:"unishop/market/flash_sale";s:5:"title";s:12:"秒杀管理";s:4:"icon";s:10:"fa fa-flag";s:9:"condition";s:0:"";s:6:"remark";s:362:"1,归档结束会把商品的真实售量和剩余数量同步到对应商品。 -2,已归档、已开始、上架状态的秒杀信息不能够修改。 -3,商品列表下架的商品也可以参与秒杀,建议复制一份商品专门提供给秒杀使用。 -4,秒杀进行中的商品可以单个下架。 -5,必须启动redis才能使用秒杀功能";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:25;a:13:{s:2:"id";i:215;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:13:"unishop/order";s:5:"title";s:12:"订单管理";s:4:"icon";s:11:"fa fa-print";s:9:"condition";s:0:"";s:6:"remark";s:97:"1,货到付款默认支付状态为已支付,请留意发快递的时候选择收付模式。";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}i:26;a:13:{s:2:"id";i:226;s:4:"type";s:4:"file";s:3:"pid";i:160;s:4:"name";s:16:"unishop/evaluate";s:5:"title";s:18:"商品评价管理";s:4:"icon";s:16:"fa fa-commenting";s:9:"condition";s:0:"";s:6:"remark";s:0:"";s:6:"ismenu";i:1;s:10:"createtime";i:1594365305;s:10:"updatetime";i:1594365305;s:5:"weigh";i:0;s:6:"status";s:6:"normal";}} \ No newline at end of file diff --git a/runtime/log/202007/10.log b/runtime/log/202007/10.log deleted file mode 100644 index 74a4ec7..0000000 --- a/runtime/log/202007/10.log +++ /dev/null @@ -1,1954 +0,0 @@ ---------------------------------------------------------------- -[ 2020-07-10T14:03:09+08:00 ] 127.0.0.1 POST ww.com/aYhJTRKIWV.php/addon/install -[ error ] [1]Maximum execution time of 30 seconds exceeded ---------------------------------------------------------------- -[ 2020-07-10T14:04:49+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087060 -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (11,9,8) ) AND `ww_unishop_product`.`deletetime` IS NULL' at line 1 ---------------------------------------------------------------- -[ 2020-07-10T14:05:17+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087061 -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (11,9,8) ) AND `ww_unishop_product`.`deletetime` IS NULL' at line 1 ---------------------------------------------------------------- -[ 2020-07-10T14:06:10+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087062 -[运行时间:1.433553s] [吞吐率:0.70req/s] [内存消耗:6,840.83kb] [文件加载:145] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000186s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004524s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004639s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000845s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594361087062', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002011s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ LOG ] INIT File -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (11,9,8) ) AND `ww_unishop_product`.`deletetime` IS NULL' at line 1[D:\php\weiwei\thinkphp\library\think\db\Connection.php:385] ---------------------------------------------------------------- -[ 2020-07-10T14:06:14+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087063 -[运行时间:1.486998s] [吞吐率:0.67req/s] [内存消耗:6,840.83kb] [文件加载:145] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000281s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.005407s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005559s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000922s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594361087063', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002723s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ LOG ] INIT File -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (11,9,8) ) AND `ww_unishop_product`.`deletetime` IS NULL' at line 1[D:\php\weiwei\thinkphp\library\think\db\Connection.php:385] ---------------------------------------------------------------- -[ 2020-07-10T14:13:25+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087064 -[运行时间:1.464086s] [吞吐率:0.68req/s] [内存消耗:6,840.83kb] [文件加载:145] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000176s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.009112s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.009398s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001308s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594361087064', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002026s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ LOG ] INIT File -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (11,9,8) ) AND `ww_unishop_product`.`deletetime` IS NULL' at line 1[D:\php\weiwei\thinkphp\library\think\db\Connection.php:385] ---------------------------------------------------------------- -[ 2020-07-10T14:13:29+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087065 -[运行时间:1.355230s] [吞吐率:0.74req/s] [内存消耗:6,840.83kb] [文件加载:145] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000184s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006622s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.006923s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001307s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594361087065', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002398s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ LOG ] INIT File -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (11,9,8) ) AND `ww_unishop_product`.`deletetime` IS NULL' at line 1[D:\php\weiwei\thinkphp\library\think\db\Connection.php:385] ---------------------------------------------------------------- -[ 2020-07-10T14:16:45+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087066 -[运行时间:0.961847s] [吞吐率:1.04req/s] [内存消耗:6,721.54kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000155s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006067s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.006294s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001057s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594361087066', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002169s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:20:31+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594361087067 -[运行时间:1.076599s] [吞吐率:0.93req/s] [内存消耗:6,483.86kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000147s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.003428s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003566s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000731s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594361087067', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005234s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:20:53+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?addtabs=1 -[运行时间:0.920194s] [吞吐率:1.09req/s] [内存消耗:6,738.89kb] [文件加载:140] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000142s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004325s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004509s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000759s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002017s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->index[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\addon\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000596s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:20:54+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=addon&v=1594362052 -[运行时间:0.723834s] [吞吐率:1.38req/s] [内存消耗:6,526.90kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000151s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.008076s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.008285s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000796s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'addon', - 'v' => '1594362052', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002183s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000497s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:01+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon/downloaded?callback=jQuery22405082879226465853_1594362053963&sort=id&order=desc&offset=0&limit=50&filter=%7B%22type%22%3A%22local%22%2C%22faversion%22%3A%221.0.0.20200506_beta%22%7D&op=%7B%22type%22%3A%22%3D%22%2C%22faversion%22%3A%22%3D%22%7D&uid=22528&token=e7bde209-e703-4b7a-ab45-7a087ec5c31b&version=1.0.0.20200506_beta&_=1594362053965 -[运行时间:3.659993s] [吞吐率:0.27req/s] [内存消耗:6,611.37kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000144s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.005677s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005795s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000831s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'downloaded', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'jQuery22405082879226465853_1594362053963', - 'sort' => 'id', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '50', - 'filter' => '{"type":"local","faversion":"1.0.0.20200506_beta"}', - 'op' => '{"type":"=","faversion":"="}', - 'uid' => '22528', - 'token' => 'e7bde209-e703-4b7a-ab45-7a087ec5c31b', - 'version' => '1.0.0.20200506_beta', - '_' => '1594362053965', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002508s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->downloaded[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000551s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:07+08:00 ] 127.0.0.1 POST ww.com/aYhJTRKIWV.php/addon/state -[运行时间:1.003394s] [吞吐率:1.00req/s] [内存消耗:6,715.08kb] [文件加载:141] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000233s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.007084s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007204s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000701s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'state', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'origin' => 'http://ww.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '35', - 'connection' => 'keep-alive', - 'host' => 'ww.com', -) -[ info ] [ PARAM ] array ( - 'name' => 'unishop', - 'action' => 'disable', - 'force' => '0', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002102s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->state[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.230762s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:35+08:00 ] 127.0.0.1 POST ww.com/aYhJTRKIWV.php/addon/state -[运行时间:1.409501s] [吞吐率:0.71req/s] [内存消耗:7,108.53kb] [文件加载:145] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000136s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.003580s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003695s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000785s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'state', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'origin' => 'http://ww.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '35', - 'connection' => 'keep-alive', - 'host' => 'ww.com', -) -[ info ] [ PARAM ] array ( - 'name' => 'unishop', - 'action' => 'disable', - 'force' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002053s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->state[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.229526s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:35+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon/downloaded?callback=jQuery22405082879226465853_1594362053963&sort=id&order=desc&offset=0&limit=50&filter=%7B%22type%22%3A%22local%22%2C%22faversion%22%3A%221.0.0.20200506_beta%22%7D&op=%7B%22type%22%3A%22%3D%22%2C%22faversion%22%3A%22%3D%22%7D&uid=22528&token=e7bde209-e703-4b7a-ab45-7a087ec5c31b&version=1.0.0.20200506_beta&_=1594362053966 -[运行时间:0.736948s] [吞吐率:1.36req/s] [内存消耗:6,300.39kb] [文件加载:135] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000302s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.006262s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001154s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'downloaded', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'jQuery22405082879226465853_1594362053963', - 'sort' => 'id', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '50', - 'filter' => '{"type":"local","faversion":"1.0.0.20200506_beta"}', - 'op' => '{"type":"=","faversion":"="}', - 'uid' => '22528', - 'token' => 'e7bde209-e703-4b7a-ab45-7a087ec5c31b', - 'version' => '1.0.0.20200506_beta', - '_' => '1594362053966', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003119s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->downloaded[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000974s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:37+08:00 ] 127.0.0.1 POST ww.com/aYhJTRKIWV.php/index/index -[运行时间:2.416250s] [吞吐率:0.41req/s] [内存消耗:6,636.68kb] [文件加载:149] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000552s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007456s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001622s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'origin' => 'http://ww.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '18', - 'connection' => 'keep-alive', - 'host' => 'ww.com', -) -[ info ] [ PARAM ] array ( - 'action' => 'refreshmenu', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002441s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\weiwei\application\admin\controller\Index.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.237707s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:38+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon/downloaded?callback=jQuery22405082879226465853_1594362053963&sort=id&order=desc&offset=0&limit=50&filter=%7B%22type%22%3A%22local%22%2C%22faversion%22%3A%221.0.0.20200506_beta%22%7D&op=%7B%22type%22%3A%22%3D%22%2C%22faversion%22%3A%22%3D%22%7D&uid=22528&token=e7bde209-e703-4b7a-ab45-7a087ec5c31b&version=1.0.0.20200506_beta&_=1594362053967 -[运行时间:0.819512s] [吞吐率:1.22req/s] [内存消耗:6,300.39kb] [文件加载:135] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000348s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.008563s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001253s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'downloaded', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'jQuery22405082879226465853_1594362053963', - 'sort' => 'id', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '50', - 'filter' => '{"type":"local","faversion":"1.0.0.20200506_beta"}', - 'op' => '{"type":"=","faversion":"="}', - 'uid' => '22528', - 'token' => 'e7bde209-e703-4b7a-ab45-7a087ec5c31b', - 'version' => '1.0.0.20200506_beta', - '_' => '1594362053967', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.004436s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->downloaded[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001190s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:53+08:00 ] 127.0.0.1 POST ww.com/aYhJTRKIWV.php/addon/uninstall -[运行时间:10.483606s] [吞吐率:0.10req/s] [内存消耗:6,974.51kb] [文件加载:144] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000141s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005656s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001057s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'uninstall', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'origin' => 'http://ww.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '20', - 'connection' => 'keep-alive', - 'host' => 'ww.com', -) -[ info ] [ PARAM ] array ( - 'name' => 'unishop', - 'force' => '0', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002473s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->uninstall[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.233310s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:54+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon/downloaded?callback=jQuery22405082879226465853_1594362053963&sort=id&order=desc&offset=0&limit=50&filter=%7B%22type%22%3A%22local%22%2C%22faversion%22%3A%221.0.0.20200506_beta%22%7D&op=%7B%22type%22%3A%22%3D%22%2C%22faversion%22%3A%22%3D%22%7D&uid=22528&token=e7bde209-e703-4b7a-ab45-7a087ec5c31b&version=1.0.0.20200506_beta&_=1594362053968 -[运行时间:0.720691s] [吞吐率:1.39req/s] [内存消耗:6,294.34kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000327s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007782s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001340s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'downloaded', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'jQuery22405082879226465853_1594362053963', - 'sort' => 'id', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '50', - 'filter' => '{"type":"local","faversion":"1.0.0.20200506_beta"}', - 'op' => '{"type":"=","faversion":"="}', - 'uid' => '22528', - 'token' => 'e7bde209-e703-4b7a-ab45-7a087ec5c31b', - 'version' => '1.0.0.20200506_beta', - '_' => '1594362053968', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002219s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->downloaded[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000452s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:55+08:00 ] 127.0.0.1 POST ww.com/aYhJTRKIWV.php/index/index -[运行时间:2.138368s] [吞吐率:0.47req/s] [内存消耗:6,635.44kb] [文件加载:149] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000255s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005155s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001113s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'origin' => 'http://ww.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '18', - 'connection' => 'keep-alive', - 'host' => 'ww.com', -) -[ info ] [ PARAM ] array ( - 'action' => 'refreshmenu', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.004932s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\weiwei\application\admin\controller\Index.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.239213s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T14:21:56+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon/downloaded?callback=jQuery22405082879226465853_1594362053963&sort=id&order=desc&offset=0&limit=50&filter=%7B%22type%22%3A%22local%22%2C%22faversion%22%3A%221.0.0.20200506_beta%22%7D&op=%7B%22type%22%3A%22%3D%22%2C%22faversion%22%3A%22%3D%22%7D&uid=22528&token=e7bde209-e703-4b7a-ab45-7a087ec5c31b&version=1.0.0.20200506_beta&_=1594362053969 -[运行时间:0.775615s] [吞吐率:1.29req/s] [内存消耗:6,294.34kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000134s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003273s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001079s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => 'downloaded', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'jQuery22405082879226465853_1594362053963', - 'sort' => 'id', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '50', - 'filter' => '{"type":"local","faversion":"1.0.0.20200506_beta"}', - 'op' => '{"type":"=","faversion":"="}', - 'uid' => '22528', - 'token' => 'e7bde209-e703-4b7a-ab45-7a087ec5c31b', - 'version' => '1.0.0.20200506_beta', - '_' => '1594362053969', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002065s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->downloaded[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000594s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:23+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?ref=addtabs -[运行时间:3.783633s] [吞吐率:0.26req/s] [内存消耗:6,029.56kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000728s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.173169s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.173378s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.021917s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'cache-control' => 'max-age=0', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'ref' => 'addtabs', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.023347s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.012588s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:25+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/index/index -[运行时间:2.143125s] [吞吐率:0.47req/s] [内存消耗:6,797.09kb] [文件加载:149] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000404s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.007203s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007402s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001314s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'cache-control' => 'max-age=0', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003469s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\weiwei\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\index\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'menulist', - 6 => 'navlist', - 7 => 'fixedmenu', - 8 => 'referermenu', - 9 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000764s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:27+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?addtabs=1 -[运行时间:1.155767s] [吞吐率:0.87req/s] [内存消耗:6,498.25kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000360s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.017367s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.018275s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.003724s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.011175s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->index[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\addon\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001068s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:27+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/dashboard?addtabs=1 -[运行时间:2.038628s] [吞吐率:0.49req/s] [内存消耗:6,447.48kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002546s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.014953s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.015339s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002982s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'dashboard', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.007633s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ RUN ] app\admin\controller\Dashboard->index[ D:\php\weiwei\application\admin\controller\Dashboard.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\dashboard\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'totaluser', - 6 => 'totalviews', - 7 => 'totalorder', - 8 => 'totalorderamount', - 9 => 'todayuserlogin', - 10 => 'todayusersignup', - 11 => 'todayorder', - 12 => 'unsettleorder', - 13 => 'sevendnu', - 14 => 'sevendau', - 15 => 'paylist', - 16 => 'createlist', - 17 => 'addonversion', - 18 => 'uploadmode', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000775s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:28+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=index&v=1594375283 -[运行时间:2.126686s] [吞吐率:0.47req/s] [内存消耗:6,524.13kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001062s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006947s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007141s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001362s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'index', - 'v' => '1594375283', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.004519s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000790s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:29+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=addon&v=1594375286 -[运行时间:1.949466s] [吞吐率:0.51req/s] [内存消耗:6,526.90kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000485s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006830s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007017s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001140s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'addon', - 'v' => '1594375286', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005850s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001377s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:29+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=dashboard&v=1594375286 -[运行时间:1.785517s] [吞吐率:0.56req/s] [内存消耗:6,522.13kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000310s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006333s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.006520s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001161s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/dashboard?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'dashboard', - 'v' => '1594375286', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003407s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.002197s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:34+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/wipecache?type=all&_=1594375286266 -[运行时间:0.789812s] [吞吐率:1.27req/s] [内存消耗:6,674.78kb] [文件加载:140] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000351s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.007294s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007500s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000906s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'wipecache', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'x-requested-with' => 'XMLHttpRequest', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'type' => 'all', - '_' => '1594375286266', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.006050s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->wipecache[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000704s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:35+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?ref=addtabs -[运行时间:0.725753s] [吞吐率:1.38req/s] [内存消耗:6,029.56kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000196s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.007540s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007783s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001524s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'cache-control' => 'max-age=0', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'ref' => 'addtabs', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003561s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000793s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:38+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/index/index -[运行时间:2.421986s] [吞吐率:0.41req/s] [内存消耗:7,095.95kb] [文件加载:151] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000317s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.009210s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.009505s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001569s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'cache-control' => 'max-age=0', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003270s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\weiwei\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\index\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'menulist', - 6 => 'navlist', - 7 => 'fixedmenu', - 8 => 'referermenu', - 9 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000982s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:39+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?addtabs=1 -[运行时间:1.064530s] [吞吐率:0.94req/s] [内存消耗:6,738.91kb] [文件加载:140] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000454s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.012195s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.013148s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002988s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.010190s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->index[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\addon\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000779s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:40+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/dashboard?addtabs=1 -[运行时间:2.291898s] [吞吐率:0.44req/s] [内存消耗:6,692.32kb] [文件加载:140] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000510s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.017348s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.019345s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002113s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'dashboard', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.009045s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ RUN ] app\admin\controller\Dashboard->index[ D:\php\weiwei\application\admin\controller\Dashboard.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\dashboard\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'totaluser', - 6 => 'totalviews', - 7 => 'totalorder', - 8 => 'totalorderamount', - 9 => 'todayuserlogin', - 10 => 'todayusersignup', - 11 => 'todayorder', - 12 => 'unsettleorder', - 13 => 'sevendnu', - 14 => 'sevendau', - 15 => 'paylist', - 16 => 'createlist', - 17 => 'addonversion', - 18 => 'uploadmode', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001007s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:42+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=index&v=1594375295 -[运行时间:0.814413s] [吞吐率:1.23req/s] [内存消耗:6,524.13kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000605s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.009334s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.009919s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002796s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'index', - 'v' => '1594375295', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005160s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001414s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:44+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=addon&v=1594375298 -[运行时间:1.660769s] [吞吐率:0.60req/s] [内存消耗:6,526.90kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000859s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.032862s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.033867s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.007024s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'addon', - 'v' => '1594375298', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.009802s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001982s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:01:45+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=dashboard&v=1594375298 -[运行时间:1.343048s] [吞吐率:0.74req/s] [内存消耗:6,522.13kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000605s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.021162s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.021479s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002503s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/dashboard?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'dashboard', - 'v' => '1594375298', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.022159s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001094s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:02:15+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1 -[运行时间:1.038011s] [吞吐率:0.96req/s] [内存消耗:6,622.38kb] [文件加载:139] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000350s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.009142s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.009434s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001078s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005204s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\unishop\ads\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000911s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:02:16+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=unishop.ads&v=1594375334 -[运行时间:0.777730s] [吞吐率:1.29req/s] [内存消耗:6,517.07kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000229s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006637s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007004s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001794s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'unishop.ads', - 'v' => '1594375334', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005723s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000782s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-10T18:02:18+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594375335391 -[运行时间:1.774822s] [吞吐率:0.56req/s] [内存消耗:6,857.67kb] [文件加载:144] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000451s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.013507s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.013904s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002558s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594375335391', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.011254s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000552s ] -[ info ] [ LOG ] INIT File diff --git a/runtime/log/202007/11.log b/runtime/log/202007/11.log deleted file mode 100644 index 1c9ab18..0000000 --- a/runtime/log/202007/11.log +++ /dev/null @@ -1,624 +0,0 @@ ---------------------------------------------------------------- -[ 2020-07-11T10:04:11+08:00 ] 127.0.0.1 GET ww.com/ -[运行时间:2.421004s] [吞吐率:0.41req/s] [内存消耗:4,781.79kb] [文件加载:128] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000449s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.137523s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.137713s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.022033s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => '', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/index\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.022940s ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/index/lang/zh-cn/index.php -[ info ] [ RUN ] app\index\controller\Index->index[ D:\php\weiwei\application\index\controller\Index.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/index\view\index\index.html [ array ( - 0 => 'user', - 1 => 'site', - 2 => 'config', -) ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:18+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?ref=addtabs -[运行时间:1.075856s] [吞吐率:0.93req/s] [内存消耗:6,028.66kb] [文件加载:134] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000202s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.008658s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.008829s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001402s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'ref' => 'addtabs', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005058s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.014794s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:21+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/index/index -[运行时间:2.503652s] [吞吐率:0.40req/s] [内存消耗:6,835.05kb] [文件加载:149] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000231s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006723s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007035s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001199s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003676s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\weiwei\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\index\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'menulist', - 6 => 'navlist', - 7 => 'fixedmenu', - 8 => 'referermenu', - 9 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001349s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:22+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/addon?addtabs=1 -[运行时间:1.187611s] [吞吐率:0.84req/s] [内存消耗:6,498.25kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000522s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.007494s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007703s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002602s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'addon', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.006185s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ RUN ] app\admin\controller\Addon->index[ D:\php\weiwei\application\admin\controller\Addon.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\addon\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001012s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:23+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/dashboard?addtabs=1 -[运行时间:2.123338s] [吞吐率:0.47req/s] [内存消耗:6,447.48kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000426s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.010934s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.011330s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002312s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'dashboard', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005432s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ RUN ] app\admin\controller\Dashboard->index[ D:\php\weiwei\application\admin\controller\Dashboard.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\dashboard\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'totaluser', - 6 => 'totalviews', - 7 => 'totalorder', - 8 => 'totalorderamount', - 9 => 'todayuserlogin', - 10 => 'todayusersignup', - 11 => 'todayorder', - 12 => 'unsettleorder', - 13 => 'sevendnu', - 14 => 'sevendau', - 15 => 'paylist', - 16 => 'createlist', - 17 => 'addonversion', - 18 => 'uploadmode', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000801s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:24+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=index&v=1594433058 -[运行时间:2.015646s] [吞吐率:0.50req/s] [内存消耗:6,524.13kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000712s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.010280s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.010702s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001905s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/index/index', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'index', - 'v' => '1594433058', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005308s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/index.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000726s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:24+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=addon&v=1594433061 -[运行时间:1.916163s] [吞吐率:0.52req/s] [内存消耗:6,526.90kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000541s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.012278s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.013084s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.002737s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/addon?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'addon', - 'v' => '1594433061', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005201s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/addon.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001665s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:25+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=dashboard&v=1594433061 -[运行时间:1.810851s] [吞吐率:0.55req/s] [内存消耗:6,522.13kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000446s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.009469s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.009784s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001804s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/dashboard?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'dashboard', - 'v' => '1594433061', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.007585s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001269s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:28+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1 -[运行时间:0.995416s] [吞吐率:1.00req/s] [内存消耗:6,403.11kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000371s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006845s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.007127s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001712s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?ref=addtabs', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005116s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/admin\view\unishop\ads\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000695s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:29+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/ajax/lang?callback=define&controllername=unishop.ads&v=1594433067 -[运行时间:0.763844s] [吞吐率:1.31req/s] [内存消耗:6,517.07kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000306s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.009899s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.010383s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001474s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'unishop.ads', - 'v' => '1594433067', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003414s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\weiwei\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000622s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T10:04:31+08:00 ] 127.0.0.1 GET ww.com/aYhJTRKIWV.php/unishop/ads/index?addtabs=1&sort=weigh&order=desc&offset=0&limit=10&filter=%7B%7D&op=%7B%7D&_=1594433068507 -[运行时间:1.637466s] [吞吐率:0.61req/s] [内存消耗:6,857.67kb] [文件加载:144] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000356s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.011204s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.011444s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001476s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'unishop.ads', - 2 => 'index', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://ww.com/aYhJTRKIWV.php/unishop/ads?addtabs=1', - 'content-type' => 'application/json', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'connection' => 'keep-alive', - 'host' => 'ww.com', - 'content-length' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', - 'sort' => 'weigh', - 'order' => 'desc', - 'offset' => '0', - 'limit' => '10', - 'filter' => '{}', - 'op' => '{}', - '_' => '1594433068507', -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.009297s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\weiwei\public/../application/admin/lang/zh-cn/unishop/ads.php -[ info ] [ DB ] INIT mysql -[ info ] [ RUN ] app\admin\controller\unishop\Ads->index[ D:\php\weiwei\application\admin\controller\unishop\Ads.php ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000689s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-07-11T19:27:24+08:00 ] 127.0.0.1 GET ww.com/ -[运行时间:3.222170s] [吞吐率:0.31req/s] [内存消耗:4,572.02kb] [文件加载:126] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002962s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.200339s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.200617s ] -[ info ] [ LANG ] D:\php\weiwei\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.024413s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => '', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', - 'proxy-connection' => 'keep-alive', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'purpose' => 'prefetch', - 'accept-encoding' => 'gzip, deflate', - 'upgrade-insecure-requests' => '1', - 'cookie' => 'PHPSESSID=4opmg9rsblfrfhgnefdmd6sh87; keeplogin=1%7C86400%7C1594447248%7Ceaad2efd816ec4c1c42d7c2809399bcb', - 'host' => 'ww.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\weiwei\public/../application/index\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.028965s ] -[ info ] [ LANG ] D:\php\weiwei\public/../application/index/lang/zh-cn/index.php -[ info ] [ RUN ] app\index\controller\Index->index[ D:\php\weiwei\application\index\controller\Index.php ] -[ info ] [ VIEW ] D:\php\weiwei\public/../application/index\view\index\index.html [ array ( - 0 => 'user', - 1 => 'site', - 2 => 'config', -) ] -[ info ] [ LOG ] INIT File diff --git a/runtime/log/202008/27.log b/runtime/log/202008/27.log deleted file mode 100644 index e511e38..0000000 --- a/runtime/log/202008/27.log +++ /dev/null @@ -1,1294 +0,0 @@ ---------------------------------------------------------------- -[ 2020-08-27T19:52:28+08:00 ] 127.0.0.1 GET shop1.com/ -[运行时间:0.092156s] [吞吐率:10.85req/s] [内存消耗:3,052.09kb] [文件加载:128] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000149s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002921s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002936s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000491s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => '', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'cache-control' => 'max-age=0', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/index\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001756s ] -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/index/lang/zh-cn/index.php -[ info ] [ RUN ] app\index\controller\Index->index[ D:\php\gitea\shop\application\index\controller\Index.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/index\view\index\index.html [ array ( - 0 => 'user', - 1 => 'site', - 2 => 'config', -) ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:52:38+08:00 ] 127.0.0.1 GET shop1.com/admin.php -[运行时间:0.079468s] [吞吐率:12.58req/s] [内存消耗:3,041.39kb] [文件加载:129] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000024s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002581s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002596s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000485s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001552s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/common\view\tpl\dispatch_jump.tpl [ array ( - 0 => 'code', - 1 => 'msg', - 2 => 'data', - 3 => 'url', - 4 => 'wait', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000742s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:52:40+08:00 ] 127.0.0.1 GET shop1.com/admin.php/index/login?url=%2Fadmin.php -[运行时间:0.084662s] [吞吐率:11.81req/s] [内存消耗:3,345.91kb] [文件加载:132] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000017s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002701s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002717s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000494s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'login', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'url' => '/admin.php', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001743s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->login[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/admin\view\index\login.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'background', - 6 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000445s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:52:40+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha -[运行时间:0.062562s] [吞吐率:15.98req/s] [内存消耗:2,301.84kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000020s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004136s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004154s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000963s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:52:40+08:00 ] 127.0.0.1 GET shop1.com/admin.php/ajax/lang?callback=define&controllername=index&v=1598529160 -[运行时间:0.060732s] [吞吐率:16.47req/s] [内存消耗:3,205.46kb] [文件加载:130] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000024s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004229s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004251s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000808s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'index', - 'v' => '1598529160', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001936s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\gitea\shop\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000447s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:52:51+08:00 ] 127.0.0.1 POST shop1.com/admin.php/index/login?url=%2Fadmin.php -[运行时间:0.123214s] [吞吐率:8.12req/s] [内存消耗:3,985.15kb] [文件加载:143] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000031s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002694s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002710s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000489s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'login', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'origin' => 'http://shop1.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '98', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', -) -[ info ] [ PARAM ] array ( - 'url' => '/admin.php', - '__token__' => '47e56f850634572daaf53e3bec4ebda5', - 'username' => 'admin', - 'password' => '123456', - 'captcha' => 'bwcd', - 'keeplogin' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001110s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->login[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ DB ] INIT mysql -[ info ] [ LOG ] INIT File -[ error ] [10501]SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'web'@'58.33.158.2' for table 'ww_admin_log'[D:\php\gitea\shop\thinkphp\library\think\db\Connection.php:385] ---------------------------------------------------------------- -[ 2020-08-27T19:52:51+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha&r=0.8418615150496327 -[运行时间:0.046653s] [吞吐率:21.43req/s] [内存消耗:2,302.02kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000064s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.003317s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003333s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000498s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'r' => '0.8418615150496327', - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:53:57+08:00 ] 127.0.0.1 POST shop1.com/admin.php/index/login?url=%2Fadmin.php -[运行时间:0.124117s] [吞吐率:8.06req/s] [内存消耗:3,958.28kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000016s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002890s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002907s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000540s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'login', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'origin' => 'http://shop1.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '98', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', -) -[ info ] [ PARAM ] array ( - 'url' => '/admin.php', - '__token__' => '6651ab2ce0c53812c3d536a8f0b385a3', - 'username' => 'admin', - 'password' => '123456', - 'captcha' => 'bwcd', - 'keeplogin' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001645s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->login[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.072007s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:53:57+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha&r=0.02941722959022508 -[运行时间:0.040522s] [吞吐率:24.68req/s] [内存消耗:2,302.02kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000018s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004786s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004843s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000688s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'r' => '0.02941722959022508', - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:00+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha&r=0.9184716023214834 -[运行时间:0.045095s] [吞吐率:22.18req/s] [内存消耗:2,302.02kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000020s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002624s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002655s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000496s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'r' => '0.9184716023214834', - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:07+08:00 ] 127.0.0.1 POST shop1.com/admin.php/index/login?url=%2Fadmin.php -[运行时间:0.149894s] [吞吐率:6.67req/s] [内存消耗:3,958.28kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000023s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004759s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004780s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000692s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'login', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'origin' => 'http://shop1.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '98', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', -) -[ info ] [ PARAM ] array ( - 'url' => '/admin.php', - '__token__' => '241732dbc96c201241e5941979827d3f', - 'username' => 'admin', - 'password' => '123456', - 'captcha' => 'bxko', - 'keeplogin' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001166s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->login[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.088432s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:07+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha&r=0.5602876412602023 -[运行时间:0.044619s] [吞吐率:22.41req/s] [内存消耗:2,302.02kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000016s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.003227s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003242s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001144s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'r' => '0.5602876412602023', - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:10+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha&r=0.7700258053076676 -[运行时间:0.052408s] [吞吐率:19.08req/s] [内存消耗:2,302.02kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000038s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.003416s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003441s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000559s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'r' => '0.7700258053076676', - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:16+08:00 ] 127.0.0.1 POST shop1.com/admin.php/index/login?url=%2Fadmin.php -[运行时间:0.135099s] [吞吐率:7.40req/s] [内存消耗:3,958.28kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000021s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004703s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004729s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000986s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'login', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'origin' => 'http://shop1.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '98', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', -) -[ info ] [ PARAM ] array ( - 'url' => '/admin.php', - '__token__' => '6a627483c556fe88bc9c2d39d0ac5baa', - 'username' => 'admin', - 'password' => '123456', - 'captcha' => 'gvhk', - 'keeplogin' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001333s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->login[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.074137s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:16+08:00 ] 127.0.0.1 GET shop1.com/index.php?s=/captcha&r=0.9371286209951097 -[运行时间:0.046939s] [吞吐率:21.30req/s] [内存消耗:2,302.02kb] [文件加载:115] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000036s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002540s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002555s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000485s ] -[ info ] [ ROUTE ] array ( - 'type' => 'method', - 'method' => - array ( - 0 => '\\think\\captcha\\CaptchaController', - 1 => 'index', - ), - 'var' => - array ( - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'image/webp,image/apng,image/*,*/*;q=0.8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'r' => '0.9371286209951097', - 'id' => NULL, -) -[ info ] [ RUN ] think\captcha\CaptchaController->index[ D:\php\gitea\shop\vendor\topthink\think-captcha\src\CaptchaController.php ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:29+08:00 ] 127.0.0.1 POST shop1.com/admin.php/index/login?url=%2Fadmin.php -[运行时间:0.252975s] [吞吐率:3.95req/s] [内存消耗:4,017.18kb] [文件加载:141] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000017s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004768s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004797s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001523s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'index', - 2 => 'login', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'origin' => 'http://shop1.com', - 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'x-requested-with' => 'XMLHttpRequest', - 'accept' => 'application/json, text/javascript, */*; q=0.01', - 'content-length' => '98', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', -) -[ info ] [ PARAM ] array ( - 'url' => '/admin.php', - '__token__' => '2b1b89ee489cc355f852a6319487ac37', - 'username' => 'admin', - 'password' => '123456', - 'captcha' => 'agma', - 'keeplogin' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001902s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->login[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ DB ] INIT mysql -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.053511s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:30+08:00 ] 127.0.0.1 GET shop1.com/admin.php -[运行时间:0.379970s] [吞吐率:2.63req/s] [内存消耗:4,550.38kb] [文件加载:151] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000025s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.003231s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003247s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000606s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/index/login?url=%2Fadmin.php', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002131s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/admin\view\index\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'menulist', - 6 => 'navlist', - 7 => 'fixedmenu', - 8 => 'referermenu', - 9 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000442s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:30+08:00 ] 127.0.0.1 GET shop1.com/admin.php/dashboard?addtabs=1 -[运行时间:0.275475s] [吞吐率:3.63req/s] [内存消耗:4,346.48kb] [文件加载:140] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000017s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.002870s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002891s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000490s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'dashboard', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001145s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ RUN ] app\admin\controller\Dashboard->index[ D:\php\gitea\shop\application\admin\controller\Dashboard.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/admin\view\dashboard\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'totaluser', - 6 => 'totalviews', - 7 => 'totalorder', - 8 => 'totalorderamount', - 9 => 'todayuserlogin', - 10 => 'todayusersignup', - 11 => 'todayorder', - 12 => 'unsettleorder', - 13 => 'sevendnu', - 14 => 'sevendau', - 15 => 'paylist', - 16 => 'createlist', - 17 => 'addonversion', - 18 => 'uploadmode', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000465s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:30+08:00 ] 127.0.0.1 GET shop1.com/admin.php/ajax/lang?callback=define&controllername=index&v=1598529269 -[运行时间:0.205698s] [吞吐率:4.86req/s] [内存消耗:4,186.02kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000171s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004681s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004711s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000925s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'index', - 'v' => '1598529269', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001816s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\gitea\shop\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000521s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T19:54:31+08:00 ] 127.0.0.1 GET shop1.com/admin.php/ajax/lang?callback=define&controllername=dashboard&v=1598529270 -[运行时间:0.232136s] [吞吐率:4.31req/s] [内存消耗:4,184.34kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000043s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.005835s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005862s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000943s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/dashboard?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'dashboard', - 'v' => '1598529270', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003684s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\gitea\shop\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000536s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T21:58:25+08:00 ] 127.0.0.1 GET shop1.com/admin.php -[运行时间:0.355263s] [吞吐率:2.81req/s] [内存消耗:4,384.54kb] [文件加载:149] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000026s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.004873s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004893s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001026s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'purpose' => 'prefetch', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001911s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/admin\view\index\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'menulist', - 6 => 'navlist', - 7 => 'fixedmenu', - 8 => 'referermenu', - 9 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000782s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T21:58:25+08:00 ] 127.0.0.1 GET shop1.com/admin.php -[运行时间:0.370842s] [吞吐率:2.70req/s] [内存消耗:4,384.47kb] [文件加载:149] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000231s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.005942s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005971s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000858s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => NULL, - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003320s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ RUN ] app\admin\controller\Index->index[ D:\php\gitea\shop\application\admin\controller\Index.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/admin\view\index\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'menulist', - 6 => 'navlist', - 7 => 'fixedmenu', - 8 => 'referermenu', - 9 => 'title', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.000704s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T21:58:26+08:00 ] 127.0.0.1 GET shop1.com/admin.php/dashboard?addtabs=1 -[运行时间:0.253683s] [吞吐率:3.94req/s] [内存消耗:4,173.75kb] [文件加载:138] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000042s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006132s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.006167s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001607s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'dashboard', - 2 => NULL, - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php', - 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'upgrade-insecure-requests' => '1', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'addtabs' => '1', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003230s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ RUN ] app\admin\controller\Dashboard->index[ D:\php\gitea\shop\application\admin\controller\Dashboard.php ] -[ info ] [ VIEW ] D:\php\gitea\shop\public/../application/admin\view\dashboard\index.html [ array ( - 0 => 'breadcrumb', - 1 => 'site', - 2 => 'config', - 3 => 'auth', - 4 => 'admin', - 5 => 'totaluser', - 6 => 'totalviews', - 7 => 'totalorder', - 8 => 'totalorderamount', - 9 => 'todayuserlogin', - 10 => 'todayusersignup', - 11 => 'todayorder', - 12 => 'unsettleorder', - 13 => 'sevendnu', - 14 => 'sevendau', - 15 => 'paylist', - 16 => 'createlist', - 17 => 'addonversion', - 18 => 'uploadmode', -) ] -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001513s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T21:58:26+08:00 ] 127.0.0.1 GET shop1.com/admin.php/ajax/lang?callback=define&controllername=index&v=1598536705 -[运行时间:0.253649s] [吞吐率:3.94req/s] [内存消耗:4,186.02kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000036s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.006660s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.006690s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001033s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'index', - 'v' => '1598536705', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002407s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\gitea\shop\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/index.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001850s ] -[ info ] [ LOG ] INIT File ---------------------------------------------------------------- -[ 2020-08-27T21:58:27+08:00 ] 127.0.0.1 GET shop1.com/admin.php/ajax/lang?callback=define&controllername=dashboard&v=1598536706 -[运行时间:0.326704s] [吞吐率:3.06req/s] [内存消耗:4,184.34kb] [文件加载:137] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000040s ] -[ info ] [ CACHE ] INIT File -[ info ] [ BEHAVIOR ] Run \addons\unishop\Unishop @app_init [ RunTime:0.012486s ] -[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.012521s ] -[ info ] [ LANG ] D:\php\gitea\shop\thinkphp\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.001432s ] -[ info ] [ ROUTE ] array ( - 'type' => 'module', - 'module' => - array ( - 0 => 'admin', - 1 => 'ajax', - 2 => 'lang', - ), -) -[ info ] [ HEADER ] array ( - 'cookie' => 'PHPSESSID=2q1tkjd7f6bntctc0dkqpbkpi5; keeplogin=1%7C86400%7C1598615669%7C822be8bd2ff0aad69dbacbceb68c8b1c', - 'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8', - 'accept-encoding' => 'gzip, deflate', - 'referer' => 'http://shop1.com/admin.php/dashboard?addtabs=1', - 'accept' => '*/*', - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', - 'connection' => 'keep-alive', - 'host' => 'shop1.com', - 'content-length' => '', - 'content-type' => '', -) -[ info ] [ PARAM ] array ( - 'callback' => 'define', - 'controllername' => 'dashboard', - 'v' => '1598536706', -) -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin\lang\zh-cn.php -[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.006166s ] -[ info ] [ SESSION ] INIT array ( - 'id' => '', - 'var_session_id' => '', - 'prefix' => 'think', - 'type' => '', - 'auto_start' => true, -) -[ info ] [ DB ] INIT mysql -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/ajax.php -[ info ] [ RUN ] app\admin\controller\Ajax->lang[ D:\php\gitea\shop\application\admin\controller\Ajax.php ] -[ info ] [ LANG ] D:\php\gitea\shop\public/../application/admin/lang/zh-cn/dashboard.php -[ info ] [ BEHAVIOR ] Run app\admin\behavior\AdminLog @app_end [ RunTime:0.001747s ] -[ info ] [ LOG ] INIT File diff --git a/runtime/temp/1c87dbfb971a6c4fcc8d052effdebfe7.php b/runtime/temp/1c87dbfb971a6c4fcc8d052effdebfe7.php deleted file mode 100644 index 136df93..0000000 --- a/runtime/temp/1c87dbfb971a6c4fcc8d052effdebfe7.php +++ /dev/null @@ -1,97 +0,0 @@ - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - - -
-
-
-
-
-
-

- - -

-
- - -
- - -
- - -
-
- - -
-
-
-
-
- - - - - - - - - -
- -
-
-
- -
-
-
- -
-
-
-
-
-
- - - \ No newline at end of file diff --git a/runtime/temp/427a4182b202828e9f9afa9e250c5079.php b/runtime/temp/427a4182b202828e9f9afa9e250c5079.php deleted file mode 100644 index 81c48f6..0000000 --- a/runtime/temp/427a4182b202828e9f9afa9e250c5079.php +++ /dev/null @@ -1,356 +0,0 @@ - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - - -
-
-
-
-
-
-

- - -

-
- - -
- - -
- - -
- -
-
- - - -
- -
-
-
-
-
- - - -
- - - - -
- - -
- - -
- -
-
- -
-
-
- - - - - - - - -
-
-
-
-
-
- - - \ No newline at end of file diff --git a/runtime/temp/483ec8a59636df7a935a0ca16d447796.php b/runtime/temp/483ec8a59636df7a935a0ca16d447796.php deleted file mode 100644 index e03ca15..0000000 --- a/runtime/temp/483ec8a59636df7a935a0ca16d447796.php +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - -
- - - - - - - - -
- -
- -
- -
- -
- -
- - -
- - Copyright © 2017-2020 . All rights reserved. -
- - -
- - - - -
- - - - - \ No newline at end of file diff --git a/runtime/temp/55a3fb71333a8a6df11d7c7ffd74691d.php b/runtime/temp/55a3fb71333a8a6df11d7c7ffd74691d.php deleted file mode 100644 index d1cb674..0000000 --- a/runtime/temp/55a3fb71333a8a6df11d7c7ffd74691d.php +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - - - -
- -
- - - \ No newline at end of file diff --git a/runtime/temp/7aad3da33b80c4ebe7ec1de4bfed85bb.php b/runtime/temp/7aad3da33b80c4ebe7ec1de4bfed85bb.php deleted file mode 100644 index 55751d1..0000000 --- a/runtime/temp/7aad3da33b80c4ebe7ec1de4bfed85bb.php +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - -
- - - - - - - - -
- -
- -
- -
- -
- -
- - -
- - Copyright © 2017-2020 . All rights reserved. -
- - -
- - - - -
- - - - - \ No newline at end of file diff --git a/runtime/temp/8773a69671c22197200533d7438817af.php b/runtime/temp/8773a69671c22197200533d7438817af.php deleted file mode 100644 index 8e0316c..0000000 --- a/runtime/temp/8773a69671c22197200533d7438817af.php +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - <?php echo __('Warning'); ?> - - - - - - -
-
- -
-

- -

- ' . $wait . ''); ?> -

- -

- - - - -

-
- - - - - \ No newline at end of file diff --git a/runtime/temp/a658c8e92bad5371712d9ec6d59795e1.php b/runtime/temp/a658c8e92bad5371712d9ec6d59795e1.php deleted file mode 100644 index db73208..0000000 --- a/runtime/temp/a658c8e92bad5371712d9ec6d59795e1.php +++ /dev/null @@ -1,446 +0,0 @@ - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - - -
-
-
-
-
-
-

- - -

-
- - -
- - -
- - -
- -
-
- - -
-
-
-
- -
-
-
- -
- - -
-
-
-
-
- -
- - -
-
-
-
-
- -
- - -
-
-
-
-
- -
- - -
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
-
-
-
- -
-
-
-

1234

-
1234
- -
-
-
-
-
-
-
-
- -
-
-
-

1043

-
2592
- -
-
-
-
- -
-
-
-
- -
-
-
- -
-
-

1234

-
- -
-
-
-

6754

-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
- -
-
-

5302

-
- -
-
-
-

8205

-
- -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- - - \ No newline at end of file diff --git a/runtime/temp/b8797f3ecfee33def8154075325682b4.php b/runtime/temp/b8797f3ecfee33def8154075325682b4.php deleted file mode 100644 index 1965dc5..0000000 --- a/runtime/temp/b8797f3ecfee33def8154075325682b4.php +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - <?php echo $site['name']; ?> - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-

-
-
-
-
-
-
- - - - - - - - - diff --git a/runtime/temp/c035fcc57eeb493a20f61e92abb3b3a6.php b/runtime/temp/c035fcc57eeb493a20f61e92abb3b3a6.php deleted file mode 100644 index 30f1d4d..0000000 --- a/runtime/temp/c035fcc57eeb493a20f61e92abb3b3a6.php +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - <?php echo $site['name']; ?> - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-

-
-
-
-
-
-
- - - - - - - - - diff --git a/runtime/temp/fec14a706bf3c25d44c7f6272eec4fa9.php b/runtime/temp/fec14a706bf3c25d44c7f6272eec4fa9.php deleted file mode 100644 index 1bc280c..0000000 --- a/runtime/temp/fec14a706bf3c25d44c7f6272eec4fa9.php +++ /dev/null @@ -1,446 +0,0 @@ - - - - - -<?php echo (isset($title) && ($title !== '')?$title:''); ?> - - - - - - - - - - - - - -
-
-
-
-
-
-

- - -

-
- - -
- - -
- - -
- -
-
- - -
-
-
-
- -
-
-
- -
- - -
-
-
-
-
- -
- - -
-
-
-
-
- -
- - -
-
-
-
-
- -
- - -
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
-
-
-
- -
-
-
-

1234

-
1234
- -
-
-
-
-
-
-
-
- -
-
-
-

1043

-
2592
- -
-
-
-
- -
-
-
-
- -
-
-
- -
-
-

1234

-
- -
-
-
-

6754

-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
- -
-
-

5302

-
- -
-
-
-

8205

-
- -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- - - \ No newline at end of file