From ca367c406386ecc8071eec9dd425bfeffac45023 Mon Sep 17 00:00:00 2001 From: lisong <377344020@qq.com> Date: Fri, 17 Dec 2021 20:35:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/UserController.php | 8 +- application/api/controller/AuthController.php | 8 +- .../api/controller/IndexController.php | 8 +- application/api/controller/UserController.php | 19 +- application/api/traits/ApiAuth.php | 2 +- application/common/model/Model.php | 1 - runtime/log/202112/10.log | 280 ++++++++++++++++++ runtime/log/202112/11.log | 107 +++++++ runtime/log/202112/14.log | 30 ++ 9 files changed, 449 insertions(+), 14 deletions(-) create mode 100644 runtime/log/202112/11.log create mode 100644 runtime/log/202112/14.log diff --git a/application/admin/controller/UserController.php b/application/admin/controller/UserController.php index 3c11cfd..7f6e77a 100755 --- a/application/admin/controller/UserController.php +++ b/application/admin/controller/UserController.php @@ -12,7 +12,7 @@ use app\common\model\Goods; use app\common\validate\UserValidate; use app\common\validate\OrderValidate; - +use think\Db; class UserController extends Controller { @@ -188,6 +188,12 @@ class UserController extends Controller 'order_price' => $goods_info['price']*$param['number'][$key][0], 'create_time'=>time(), ]; + //添加设备销售数量 + Db::name('goods') + ->where('id', $param['goods_id'][$key][0]) + ->update([ + 'order_num' => Db::raw("order_num+" . $param['number'][$key][0]), + ]); } } if(count($field_data)==0){ diff --git a/application/api/controller/AuthController.php b/application/api/controller/AuthController.php index 39b6fb0..471a1fe 100755 --- a/application/api/controller/AuthController.php +++ b/application/api/controller/AuthController.php @@ -41,7 +41,7 @@ class AuthController extends Controller return error('授权失败'); } $where['mobile'] = array('EQ',$user_info['tel']); - $userinfo = $fumodel->field('id,avatar,nickname,openid')->where($where)->find(); + $userinfo = $fumodel->field('id,avatar,nickname,openid,distribution_code')->where($where)->find(); if($userinfo && !$userinfo['openid']){ $data_login['login_ip']=$request->ip(); $data_login['login_time']=time(); @@ -49,14 +49,14 @@ class AuthController extends Controller $fumodel->where('id', $userinfo['id'])->update($data_login); $token = $this->getToken($userinfo['id']); $uid=Crypt::encrypt($userinfo['id']); - return success(['token' => $token,'uid'=>$uid], '登录成功'); + return success(['token' => $token,'uid'=>$uid,'distribution_code'=>$userinfo['distribution_code']], '登录成功'); }else if($userinfo && $userinfo['openid']){ $data_login['login_ip']=$request->ip(); $data_login['login_time']=time(); $fumodel->where('id', $userinfo['id'])->update($data_login); $token = $this->getToken($userinfo['id']); $uid=Crypt::encrypt($userinfo['id']); - return success(['token' => $token,'uid'=>$uid], '登录成功'); + return success(['token' => $token,'uid'=>$uid,'distribution_code'=>$userinfo['distribution_code']], '登录成功'); } //登录逻辑 // 启动事务 @@ -86,7 +86,7 @@ class AuthController extends Controller $uid=Crypt::encrypt($uid); $token = $this->getToken($uid); //返回数据 - return success(['token' => $token,'uid'=>$uid], '注册成功'); + return success(['token' => $token,'uid'=>$uid,'distribution_code'=>$res['distribution_code']], '注册成功'); } //获取用户临时code 用来去获取openid diff --git a/application/api/controller/IndexController.php b/application/api/controller/IndexController.php index efba0c8..3459312 100755 --- a/application/api/controller/IndexController.php +++ b/application/api/controller/IndexController.php @@ -218,10 +218,10 @@ class IndexController extends Controller //产生收益时间 $profit_time=ShopConfig::get('shouyi', 'time'); $xiaoshi=date('G'); - // if($xiaoshi!=$profit_time){ - // Log::write('未到收益时间'); - // return ''; - // } + if($xiaoshi!=$profit_time){ + Log::write('未到收益时间'); + return ''; + } //每日收益 $profit_num=ShopConfig::get('shouyi', 'num'); diff --git a/application/api/controller/UserController.php b/application/api/controller/UserController.php index 62b6e81..3facb97 100755 --- a/application/api/controller/UserController.php +++ b/application/api/controller/UserController.php @@ -85,7 +85,9 @@ class UserController extends Controller ->whereTime('create_time', 'today') ->sum('change_amount'); //已提现金额 - $amount_ytx = $wamodel->where(array('user_id'=>$uid,'status'=>2))->sum('money'); + $where1[]=array('status','in','1,2'); + $where1[]=array('user_id','eq',$uid); + $amount_ytx = $wamodel->where($where1)->sum('money'); //可提现金额 $amount_ktx = $umodel->where(array('id'=>$uid))->value('integral'); $data=array( @@ -182,7 +184,7 @@ class UserController extends Controller $totalPages = ceil($accountlog_count / $size); $accountlog_list = $almodel ->alias('al') - ->field("change_amount,al.create_time,source_type,avatar,nickname") + ->field("change_amount,al.create_time,source_type,avatar,nickname,change_type") ->where($where) ->join('user u', 'u.id= al.user_id') ->limit($page, $size) @@ -246,7 +248,7 @@ class UserController extends Controller } //用户中心 - public function userhome(Request $request,User $umodel,Order $omodel) + public function userhome(Request $request,User $umodel,WithdrawAccount $wamodel) { $param = $request->param(); $uid = $param['uid']?Crypt::decrypt($param['uid']):''; @@ -254,8 +256,12 @@ class UserController extends Controller // return unauthorized('请先授权'); // } $user_info=array(); + $account_info=array(); if($uid){ $user_info=$umodel->field('avatar,nickname,user_level_id as level,integral,mobile')->where(array('id'=>$uid))->find(); + if(!$user_info){ + return unauthorized('请先授权'); + } if($user_info['level']==2){ $time=time(); $order_count=$omodel->where('end_time>='.$time.' and user_id='.$uid)->count(); @@ -263,12 +269,19 @@ class UserController extends Controller $user_info['level']=1; } } + $account_info=$wamodel->field('id,real_name,real_tel,account,subbank,type')->where(array('user_id'=>$uid,'status'=>1))->find(); + if($account_info){ + $account_info['id'] = Crypt::encrypt($account_info['id']); + }else{ + $account_info=array(); + } //$user_info['avatar'] =$this->img_url.$user_info['avatar']; } //联系电话 $tel =ShopConfig::get('website', 'tel'); $data=array( 'user_info'=>$user_info, + 'account_info'=>$account_info, 'tel'=>$tel ); return success($data); diff --git a/application/api/traits/ApiAuth.php b/application/api/traits/ApiAuth.php index 1756b7c..93e1b6d 100755 --- a/application/api/traits/ApiAuth.php +++ b/application/api/traits/ApiAuth.php @@ -55,7 +55,7 @@ trait ApiAuth $token = $this->request->header($config['name']); //缺少token if (empty($token)) { - throw new HttpResponseException(error('缺少token')); + throw new HttpResponseException(unauthorized('缺少token')); } $this->token = $token; diff --git a/application/common/model/Model.php b/application/common/model/Model.php index 6792a6d..ff2a5bc 100755 --- a/application/common/model/Model.php +++ b/application/common/model/Model.php @@ -33,7 +33,6 @@ class Model extends \think\Model //禁止删除的数据id public $noDeletionId = [ - 1,2,3,4,5,6,7,8 ]; /** diff --git a/runtime/log/202112/10.log b/runtime/log/202112/10.log index b693c34..656ed2a 100644 --- a/runtime/log/202112/10.log +++ b/runtime/log/202112/10.log @@ -1726,3 +1726,283 @@ [ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `account_log` `al` INNER JOIN `user` `u` ON `u`.`id`=`al`.`user_id` [ RunTime:0.083442s ] [ sql ] [ SQL ] SELECT `al`.*,`u`.`mobile`,`u`.`nickname`,u.sn as user_sn,`u`.`avatar` FROM `account_log` `al` INNER JOIN `user` `u` ON `u`.`id`=`al`.`user_id` ORDER BY `id` DESC LIMIT 15,5 [ RunTime:0.083769s ] [ sql ] [ SQL ] SELECT `id`,`parent_id`,`name`,`url`,`icon`,`sort_id` FROM `admin_menu` WHERE `is_show` = 1 ORDER BY `sort_id` ASC,`id` ASC [ RunTime:0.083480s ] +--------------------------------------------------------------- + +[2021-12-10T10:45:03+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:1.313070s] [吞吐率:0.76req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundarySoz7ixPWUJMmBScx', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.142016s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.091603s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.089906s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.091999s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.089674s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.092151s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.090422s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.121436s ] +--------------------------------------------------------------- + +[2021-12-10T10:45:44+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:1.267315s] [吞吐率:0.79req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundary0OdSAPTBTOvEuFYS', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.132519s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.084371s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.085140s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.085527s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.083241s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.085045s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.083393s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.083009s ] +--------------------------------------------------------------- + +[2021-12-10T10:46:24+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:0.930388s] [吞吐率:1.07req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundaryFxiBtMgZQKJzgJY8', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.139313s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.091755s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.088826s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.091453s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.089346s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.091235s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.089060s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.088442s ] +--------------------------------------------------------------- + +[2021-12-10T10:46:42+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:0.881691s] [吞吐率:1.13req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundary9mfmo19ga2lu99vo', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.125832s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.083086s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.089605s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.083120s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.080589s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.083817s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.080179s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.080699s ] +--------------------------------------------------------------- + +[2021-12-10T10:47:49+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:0.793556s] [吞吐率:1.26req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundarytx9I7fQR0xbAEBql', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.121083s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.079882s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.078643s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.080579s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.078633s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.080025s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.079428s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.079023s ] +--------------------------------------------------------------- + +[2021-12-10T10:47:49+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:1.030015s] [吞吐率:0.97req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundaryzA3wcITAadwA8VO4', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.125992s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.084989s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.081764s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.082641s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.081639s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.082473s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.081481s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.080820s ] +--------------------------------------------------------------- + +[2021-12-10T11:16:30+08:00] 127.0.0.1 POST dgg-myyc-api.dggmyyc.com/u-userhome +[运行时间:1.251603s] [吞吐率:0.80req/s] [内存消耗:4,333.41kb] [文件加载:166] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( + 'rule' => 'u-userhome', + 'route' => 'api/user/userhome', + 'option' => + array ( + 'merge_rule_regex' => false, + ), + 'var' => + array ( + ), +) +[ info ] [ HEADER ] array ( + 'host' => 'dgg-myyc-api.dggmyyc.com', + 'connection' => 'keep-alive', + 'content-length' => '178', + 'accept' => 'application/json, text/javascript, */*; q=0.01', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN', + 'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundaryrZY3qbhGR6Y2rG64', + 'origin' => 'http://dgg-myyc-api.dggmyyc.com', + 'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn', + 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiIyODA1YWRmNmQ3NGM4N2IxMjlkOTI2ZjczNDY5NzI2NyIsImlhdCI6MTYzODQzODMzMiwibmJmIjoxNjM4NDM4MzMyLCJleHAiOjE2Mzg0NDU1MzIsInVpZCI6MX0.3TRs2OKCUcxdmHAnNr4dd7SfC9rTquSDlFodu0LuMeE', +) +[ info ] [ PARAM ] array ( + 'uid' => '0beafb336LgAlOsokJsyx116ReYMoUpoQ9h8fzK4SVUt', +) +[ info ] [ DB ] INIT mysql +[ sql ] [ DB ] CONNECT:[ UseTime:0.145559s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.082577s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.080289s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.084220s ] +[ sql ] [ SQL ] SELECT `avatar`,`nickname`,user_level_id as level,`integral`,`mobile` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.080038s ] +[ sql ] [ SQL ] SHOW COLUMNS FROM `withdraw_account` [ RunTime:0.082455s ] +[ sql ] [ SQL ] SELECT `id`,`real_name`,`real_tel`,`account`,`subbank`,`type` FROM `withdraw_account` WHERE `user_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.079706s ] +[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'tel' LIMIT 1 [ RunTime:0.107735s ] diff --git a/runtime/log/202112/11.log b/runtime/log/202112/11.log new file mode 100644 index 0000000..5a5c6bc --- /dev/null +++ b/runtime/log/202112/11.log @@ -0,0 +1,107 @@ +--------------------------------------------------------------- + +[2021-12-11T19:14:25+08:00] 127.0.0.1 GET www.dggmyyc.com/admin/goods/index.html?_pjax=%23pjax-container +[运行时间:0.435503s] [吞吐率:2.30req/s] [内存消耗:3,053.97kb] [文件加载:161] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( +) +[ info ] [ HEADER ] array ( + 'host' => 'www.dggmyyc.com', + 'connection' => 'keep-alive', + 'accept' => 'text/html, */*; q=0.01', + 'x-requested-with' => 'XMLHttpRequest', + 'x-pjax' => 'true', + 'x-pjax-container' => '#pjax-container', + 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36', + 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', + 'referer' => 'http://www.dggmyyc.com/admin/account_log/integrallist.html?page=4', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN,zh;q=0.9', + 'cookie' => 'thinkphp_show_page_trace=0|0; thinkphp_show_page_trace=0|0; PHPSESSID=77c1f4d451af1aff4e9878c97edb9360', +) +[ info ] [ PARAM ] array ( + '_pjax' => '#pjax-container', +) +--------------------------------------------------------------- + +[2021-12-11T19:14:25+08:00] 127.0.0.1 GET www.dggmyyc.com/admin/auth/login.html +[运行时间:0.508046s] [吞吐率:1.97req/s] [内存消耗:4,378.84kb] [文件加载:179] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( +) +[ info ] [ HEADER ] array ( + 'host' => 'www.dggmyyc.com', + 'connection' => 'keep-alive', + 'accept' => 'text/html, */*; q=0.01', + 'x-requested-with' => 'XMLHttpRequest', + 'x-pjax' => 'true', + 'x-pjax-container' => '#pjax-container', + 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36', + 'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8', + 'referer' => 'http://www.dggmyyc.com/admin/account_log/integrallist.html?page=4', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN,zh;q=0.9', + 'cookie' => 'thinkphp_show_page_trace=0|0; thinkphp_show_page_trace=0|0; PHPSESSID=77c1f4d451af1aff4e9878c97edb9360', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ DB ] INIT mysql +[ info ] [ VIEW ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/auth/login.html [ array ( + 0 => 'login_config', + 1 => 'debug', + 2 => 'cookie_prefix', + 3 => 'admin', +) ] +[ sql ] [ DB ] CONNECT:[ UseTime:0.139723s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_menu` [ RunTime:0.094711s ] +[ sql ] [ SQL ] SELECT * FROM `admin_menu` WHERE `url` = 'admin/auth/login' LIMIT 1 [ RunTime:0.092313s ] +--------------------------------------------------------------- + +[2021-12-11T19:14:25+08:00] 127.0.0.1 GET www.dggmyyc.com/admin/goods/index.html +[运行时间:0.040015s] [吞吐率:24.99req/s] [内存消耗:3,053.97kb] [文件加载:161] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( +) +[ info ] [ HEADER ] array ( + 'host' => 'www.dggmyyc.com', + 'connection' => 'keep-alive', + 'upgrade-insecure-requests' => '1', + 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36', + 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', + 'referer' => 'http://www.dggmyyc.com/admin/account_log/integrallist.html?page=4', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN,zh;q=0.9', + 'cookie' => 'thinkphp_show_page_trace=0|0; thinkphp_show_page_trace=0|0; PHPSESSID=77c1f4d451af1aff4e9878c97edb9360', +) +[ info ] [ PARAM ] array ( +) +--------------------------------------------------------------- + +[2021-12-11T19:14:26+08:00] 127.0.0.1 GET www.dggmyyc.com/admin/auth/login.html +[运行时间:0.376169s] [吞吐率:2.66req/s] [内存消耗:4,378.51kb] [文件加载:179] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( +) +[ info ] [ HEADER ] array ( + 'host' => 'www.dggmyyc.com', + 'connection' => 'keep-alive', + 'upgrade-insecure-requests' => '1', + 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36', + 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', + 'referer' => 'http://www.dggmyyc.com/admin/account_log/integrallist.html?page=4', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN,zh;q=0.9', + 'cookie' => 'thinkphp_show_page_trace=0|0; thinkphp_show_page_trace=0|0; PHPSESSID=77c1f4d451af1aff4e9878c97edb9360', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ DB ] INIT mysql +[ info ] [ VIEW ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/auth/login.html [ array ( + 0 => 'login_config', + 1 => 'debug', + 2 => 'cookie_prefix', + 3 => 'admin', +) ] +[ sql ] [ DB ] CONNECT:[ UseTime:0.141156s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_menu` [ RunTime:0.094712s ] +[ sql ] [ SQL ] SELECT * FROM `admin_menu` WHERE `url` = 'admin/auth/login' LIMIT 1 [ RunTime:0.092424s ] diff --git a/runtime/log/202112/14.log b/runtime/log/202112/14.log new file mode 100644 index 0000000..af68c9d --- /dev/null +++ b/runtime/log/202112/14.log @@ -0,0 +1,30 @@ +--------------------------------------------------------------- + +[2021-12-14T21:55:46+08:00] 127.0.0.1 GET www.dggmyyc.com/admin/auth/login.html +[运行时间:0.765343s] [吞吐率:1.31req/s] [内存消耗:4,378.21kb] [文件加载:179] +[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/thinkphp/lang/zh-cn.php +[ info ] [ ROUTE ] array ( +) +[ info ] [ HEADER ] array ( + 'host' => 'www.dggmyyc.com', + 'connection' => 'keep-alive', + 'upgrade-insecure-requests' => '1', + 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', + 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', + 'referer' => 'http://www.dggmyyc.com/admin/account_log/integrallist.html?page=4', + 'accept-encoding' => 'gzip, deflate', + 'accept-language' => 'zh-CN,zh;q=0.9', + 'cookie' => 'thinkphp_show_page_trace=0|0; thinkphp_show_page_trace=0|0; PHPSESSID=77c1f4d451af1aff4e9878c97edb9360', +) +[ info ] [ PARAM ] array ( +) +[ info ] [ DB ] INIT mysql +[ info ] [ VIEW ] /Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/auth/login.html [ array ( + 0 => 'login_config', + 1 => 'debug', + 2 => 'cookie_prefix', + 3 => 'admin', +) ] +[ sql ] [ DB ] CONNECT:[ UseTime:0.128633s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_myyc;charset=utf8mb4 +[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_menu` [ RunTime:0.086385s ] +[ sql ] [ SQL ] SELECT * FROM `admin_menu` WHERE `url` = 'admin/auth/login' LIMIT 1 [ RunTime:0.083966s ]