Commit 45fa38dd by 庄钊鑫

token修改,返回参数格式修改

parent 78039aee
......@@ -3,11 +3,14 @@
<component name="ChangeListManager">
<list default="true" id="91f66d3c-41ac-41b6-86c7-896c6cbc8e56" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/controller/Api.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/Api.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/controller/Send.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/Send.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/controller/v1/app/Send.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/v1/app/Send.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/controller/v1/app/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/v1/app/User.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/model/Token.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/model/Token.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/model/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/model/User.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/api/model/UserToken.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/model/Token.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/common/validate/Base.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/common/validate/Base.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/runtime/log/201903/12.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/201903/12.log" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -23,8 +26,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="288">
<caret line="101" column="41" selection-start-line="101" selection-start-column="41" selection-end-line="101" selection-end-column="41" />
<state relative-caret-position="966">
<caret line="221" column="46" selection-start-line="221" selection-start-column="46" selection-end-line="221" selection-end-column="46" />
<folding>
<element signature="e#45#72#0#PHP" expanded="true" />
</folding>
......@@ -33,19 +36,22 @@
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/stubs/session/session.php">
<entry file="file://$PROJECT_DIR$/app/api/controller/Api.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268">
<caret line="82" column="9" selection-start-line="82" selection-start-column="9" selection-end-line="82" selection-end-column="9" />
<state relative-caret-position="385">
<caret line="174" column="76" selection-start-line="174" selection-start-column="71" selection-end-line="174" selection-end-column="76" />
<folding>
<element signature="e#78#99#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Base.php">
<entry file="file://$PROJECT_DIR$/thinkphp/library/think/Controller.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="361">
<caret line="25" column="23" selection-start-line="25" selection-start-column="23" selection-end-line="25" selection-end-column="23" />
<state relative-caret-position="-15">
<caret line="186" column="7" selection-start-line="186" selection-start-column="7" selection-end-line="186" selection-end-column="7" />
</state>
</provider>
</entry>
......@@ -59,11 +65,11 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/model/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="512">
<caret line="58" column="25" selection-start-line="58" selection-start-column="25" selection-end-line="58" selection-end-column="25" />
<state relative-caret-position="612">
<caret line="95" column="22" selection-start-line="95" selection-start-column="22" selection-end-line="95" selection-end-column="22" />
<folding>
<element signature="e#118#131#0#PHP" expanded="true" />
</folding>
......@@ -74,8 +80,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/model/Token.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="691">
<caret line="108" column="45" selection-start-line="108" selection-start-column="45" selection-end-line="108" selection-end-column="45" />
<state relative-caret-position="508">
<caret line="80" column="23" selection-start-line="80" selection-start-column="8" selection-end-line="80" selection-end-column="23" />
<folding>
<element signature="e#33#49#0#PHP" expanded="true" />
</folding>
......@@ -93,31 +99,31 @@
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/controller/Send.php">
<entry file="file://$PROJECT_DIR$/app/common/validate/Base.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="212">
<caret line="154" column="83" selection-start-line="152" selection-start-column="16" selection-end-line="154" selection-end-column="83" />
<state relative-caret-position="251">
<caret line="38" column="22" selection-start-line="38" selection-start-column="17" selection-end-line="38" selection-end-column="22" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php">
<entry file="file://$PROJECT_DIR$/app/api/controller/Send.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="637">
<caret line="96" column="34" selection-start-line="96" selection-start-column="34" selection-end-line="96" selection-end-column="34" />
<folding>
<element signature="e#132#158#0#PHP" expanded="true" />
</folding>
<state relative-caret-position="677">
<caret line="190" column="59" selection-start-line="190" selection-start-column="59" selection-end-line="190" selection-end-column="59" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/common/validate/Base.php">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="321">
<caret line="91" column="17" selection-start-line="91" selection-start-column="9" selection-end-line="91" selection-end-column="17" />
<state relative-caret-position="574">
<caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" />
<folding>
<element signature="e#132#158#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -135,6 +141,7 @@
<find>sms_type</find>
<find>password</find>
<find>name</find>
<find>token</find>
</findStrings>
</component>
<component name="Git.Settings">
......@@ -149,11 +156,13 @@
<option value="$PROJECT_DIR$/app/api/model/Sms.php" />
<option value="$PROJECT_DIR$/app/api/logic/app/SendLogic.php" />
<option value="$PROJECT_DIR$/app/api/model/UserToken.php" />
<option value="$PROJECT_DIR$/app/common/validate/Base.php" />
<option value="$PROJECT_DIR$/app/api/model/Token.php" />
<option value="$PROJECT_DIR$/app/common/validate/Base.php" />
<option value="$PROJECT_DIR$/app/api/controller/Send.php" />
<option value="$PROJECT_DIR$/app/api/controller/Api.php" />
<option value="$PROJECT_DIR$/app/api/model/User.php" />
<option value="$PROJECT_DIR$/app/api/controller/v1/app/User.php" />
<option value="$PROJECT_DIR$/app/api/controller/v1/app/Send.php" />
<option value="$PROJECT_DIR$/app/api/model/User.php" />
</list>
</option>
</component>
......@@ -223,6 +232,14 @@
<item name="personal" type="462c0819:PsiDirectoryNode" />
<item name="app" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="controller" type="462c0819:PsiDirectoryNode" />
<item name="v2" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="personal" type="b2602c69:ProjectViewProjectNode" />
<item name="personal" type="462c0819:PsiDirectoryNode" />
<item name="app" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="model" type="462c0819:PsiDirectoryNode" />
</path>
<path>
......@@ -278,12 +295,12 @@
<option name="presentableId" value="Default" />
<updated>1552287639374</updated>
<workItem from="1552287640754" duration="12982000" />
<workItem from="1552352825843" duration="5264000" />
<workItem from="1552352825843" duration="10146000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="18246000" />
<option name="totallyTimeSpent" value="23128000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="0" width="1440" height="900" extended-state="0" />
......@@ -317,20 +334,6 @@
<entry file="file://$PROJECT_DIR$/app/tags.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/thinkphp/library/think/Controller.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-15">
<caret line="187" column="23" selection-start-line="187" selection-start-column="23" selection-end-line="187" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/Api.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261">
<caret line="152" column="23" selection-start-line="152" selection-start-column="23" selection-end-line="152" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/config.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2781" />
......@@ -390,13 +393,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/common/validate/Base.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="321">
<caret line="91" column="17" selection-start-line="91" selection-start-column="9" selection-end-line="91" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Base.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="361">
......@@ -425,49 +421,73 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/common/validate/Base.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="251">
<caret line="38" column="22" selection-start-line="38" selection-start-column="17" selection-end-line="38" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/thinkphp/library/think/Controller.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-15">
<caret line="186" column="7" selection-start-line="186" selection-start-column="7" selection-end-line="186" selection-end-column="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/model/Token.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="508">
<caret line="80" column="23" selection-start-line="80" selection-start-column="8" selection-end-line="80" selection-end-column="23" />
<folding>
<element signature="e#33#49#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/Send.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="212">
<caret line="154" column="83" selection-start-line="152" selection-start-column="16" selection-end-line="154" selection-end-column="83" />
<state relative-caret-position="677">
<caret line="190" column="59" selection-start-line="190" selection-start-column="59" selection-end-line="190" selection-end-column="59" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php">
<entry file="file://$PROJECT_DIR$/app/api/controller/Api.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="637">
<caret line="96" column="34" selection-start-line="96" selection-start-column="34" selection-end-line="96" selection-end-column="34" />
<state relative-caret-position="385">
<caret line="174" column="76" selection-start-line="174" selection-start-column="71" selection-end-line="174" selection-end-column="76" />
<folding>
<element signature="e#132#158#0#PHP" expanded="true" />
<element signature="e#78#99#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/model/Token.php">
<entry file="file://$PROJECT_DIR$/app/api/model/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="691">
<caret line="108" column="45" selection-start-line="108" selection-start-column="45" selection-end-line="108" selection-end-column="45" />
<state relative-caret-position="612">
<caret line="95" column="22" selection-start-line="95" selection-start-column="22" selection-end-line="95" selection-end-column="22" />
<folding>
<element signature="e#33#49#0#PHP" expanded="true" />
<element signature="e#118#131#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="288">
<caret line="101" column="41" selection-start-line="101" selection-start-column="41" selection-end-line="101" selection-end-column="41" />
<state relative-caret-position="966">
<caret line="221" column="46" selection-start-line="221" selection-start-column="46" selection-end-line="221" selection-end-column="46" />
<folding>
<element signature="e#45#72#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/api/model/User.php">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="512">
<caret line="58" column="25" selection-start-line="58" selection-start-column="25" selection-end-line="58" selection-end-column="25" />
<state relative-caret-position="574">
<caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" />
<folding>
<element signature="e#118#131#0#PHP" expanded="true" />
<element signature="e#132#158#0#PHP" expanded="true" />
</folding>
</state>
</provider>
......
......@@ -8,6 +8,7 @@ namespace app\api\controller;
use think\Controller;
use think\exception\HttpResponseException;
use think\Request;
use think\Cache;
class Api extends Controller
{
......@@ -159,6 +160,28 @@ class Api extends Controller
}
/**
* 验证header参数
* @access protected
* @param array $data 数据
* @param string|array $validate 验证器名或者验证规则数组
* @param array $message 提示信息
*/
protected function checkHeader($key,$mobile)
{
$info = Request::instance()->header();
if(isset($info[$key])){
$getMobile = Cache::get($info[$key]);
$result = $getMobile ?
(($getMobile == $mobile) ? ['status' => 1,'message' => $info[$key]] : ['status' => 0,'message' => '手机号码不一致!'])
: ['status' => 0,'message' => 'token已失效!'];
return $result;
}else{
self::returnmsg(403, [], [], "", "param error", "获取token失败!");
}
}
/**
* 获取页码和每页数量
* @param int $defaultIndex
* @param int $defaultSize
......
......@@ -147,7 +147,9 @@ trait Send
{
switch ($code) {
case 200:
$error = "SUCCESS";
$error['success']['type'] = "SUCCESS";
$error['success']['reason'] = empty($reason) ? "param missing" : $reason;
$error['success']['message'] = empty($message) ? "请求体不完整" : $message;
break;
case 400:
$error['error']['type'] = "BAD REQUEST";
......
......@@ -15,6 +15,7 @@ use think\Controller;
use app\api\logic\app\SendLogic;
use app\common\tools\Guodulink;
use app\api\logic\app\UserLogic;
use think\Cache;
/**
* 所有资源类接都必须继承基类控制器
......@@ -93,7 +94,13 @@ class Send extends Base
if ($info === false) {
$this->returnmsg(403, [], [], "", [], "验证码错误");
}
$success['success']['message'] = '验证码正确!';
$this->render(200,$success);
$tokenId = md5(md5(time()));
Cache::set($tokenId,$request['mobile'],1800);
if(Cache::get($tokenId)){
$result['token'] = $tokenId;
}
$result['message'] = '验证码正确!';
$this->returnmsg(200,[],[],"validateCode","validateCode success",$result);
}
}
......@@ -101,7 +101,7 @@ class User extends Base
$this->check($requestData, 'Base.cmsLogin');
$result = UserModel::build()->login($requestData);
if ($result) {
$this->render(200,$result);
$this->returnmsg(200,[],[],"login","login success",$result);
} else {
$this->returnmsg(403, $data = [], $header = [], $type = "", "Login error", $message = "登录失败");
}
......@@ -151,7 +151,7 @@ class User extends Base
}
$data = UserLogic::publicLogin($requestData);
$data !== false ? $this->render($data) : $this->returnmsg(403,"","","","","登录失败");
$data !== false ? $this->render($data) : $this->returnmsg(403,[],[],"","","登录失败");
}
......@@ -164,10 +164,10 @@ class User extends Base
{
$request = $this->selectParam(['mobile','sms_type' => 'bind']);
$this->check($request, 'Base.sendSms');
$bool = UserLogic::checkUser($request['mobile']);
if(!empty($bool)){
$this->returnmsg(403, [], [],"", [], "该手机号已注册");
}
// $bool = UserLogic::checkUser($request['mobile']);
// if(!empty($bool)){
// $this->returnmsg(403, [], [],"", [], "该手机号已注册");
// }
$success['success']['message'] = '手机号码验证成功';
$this->render(200,$success);
}
......@@ -191,18 +191,12 @@ class User extends Base
$this->returnmsg(403, [], [],"", [], "该手机号已注册");
}
}
$tokenId = md5(md5(time()));
Cache::set($tokenId,$request['mobile'],1800);
if(Cache::get($tokenId)){
$info = true;
//$info = SendLogic::SendSms($request['mobile'], $request['sms_type']);
if ($info === false) {
$this->returnmsg(403, [], [],"", [], "信息发送出现了一点小问题哟~");
}
$success['success']['token'] = $tokenId;
$success['success']['message'] = '验证码发送成功';
$this->render(200,$success);
//$info = true;
$info = SendLogic::SendSms($request['mobile'], $request['sms_type']);
if ($info === false) {
$this->returnmsg(403, [], [],"", [], "信息发送出现了一点小问题哟~");
}
$this->returnmsg(200,[],[],"sendCode","sendCode success",'验证码发送成功');
}
/**
......@@ -215,11 +209,11 @@ class User extends Base
*/
public function register()
{
$request = $this->selectParam(['mobile', 'password','password2','token']);
$request = $this->selectParam(['mobile', 'password','password2']);
$this->check($request, 'Base.register');
$result = Token::validateToken2($request['token'],$request['mobile']);
if($result['status'] == 0){
$this->returnmsg(403, [], [],"", [], $result['message']);
$headerResult = $this->checkHeader('regitser-access-token',$request['mobile']);
if($headerResult['status'] == 0){
$this->returnmsg(403, [], [],"", [], $headerResult['message']);
}
$bool = UserLogic::checkUser($request['mobile']);
if(!empty($bool)){
......@@ -227,9 +221,8 @@ class User extends Base
}
$result = UserModel::build()->register($request);
if ($result) {
Cache::rm($request['token']);
$success['success']['message'] = '注册成功!';
$this->render(200,$success);
Cache::rm($headerResult['message']);
$this->returnmsg(200,[],[],"register","register success",$result);
} else {
$this->returnmsg(403, $data = [], $header = [], $type = "", "Login error", $message = "注册失败");
}
......
......@@ -68,14 +68,17 @@ class Token extends Model
public static function validateToken2($tokenId,$mobile)
{
$getMobile = Cache::get($tokenId);
if($getMobile){
if($getMobile == $mobile){
return ['status' => 1];
}else{
return ['status' => 0,'message' => '手机号码不一致!'];
}
}
return ['status' => 0,'message' => 'token已失效!'];
$result = $getMobile ?
(($getMobile == $mobile) ? ['status' => 1] : ['status' => 0,'message' => '手机号码不一致!'])
: ['status' => 0,'message' => 'token已失效!'];
// if($getMobile){
// if($getMobile == $mobile){
// return ['status' => 1];
// }else{
// return ['status' => 0,'message' => '手机号码不一致!'];
// }
// }
return $result;
}
/**
......
......@@ -85,14 +85,15 @@ class User extends Model
$user['name'] = replaceToStar($request['mobile']);
$user['create_time'] = timeToDate(time());
$user['password'] = md5(md5($request['password']));
$result = self::build()->insert($user);
self::build()->insert($user);
$result = $this->login(['mobile' => $request['mobile'],'password' => $request['password']]);
if (!$result) {
Db::rollback();
return false;
}
Db::commit();
return true;
return $result;
}
......
......@@ -38,7 +38,7 @@ class Base extends Validate
'keyword' => 'chsDash',
'refresh_token' => 'require|length:32',
'collect_type' => 'require|in:school,speciality',
'token' => 'require',
'name' => 'require|chsAlphaNum|length:0,64',
'gender' => 'require|in:男,女',
'birth' => 'require|chsAlphaNum|length:0,64',
......@@ -63,7 +63,7 @@ class Base extends Validate
'password.require' => '密码必须',
'password.min' => '密码过短',
'password2.confirm' => '两次密码输入不一致',
'token.require' => 'token必须',
'message_type' => '消息类型错误',
'province' => '省份设置错误',
'city.json' => '城市设置错误',
......@@ -89,7 +89,7 @@ class Base extends Validate
'id' => ['id'],
'uuid' => ['uuid'],
'sendSms' => ['mobile', 'sms_type'],
'register' => ['mobile','password','password2','token'],
'register' => ['mobile','password','password2'],
'sendPartnerSms' => ['mobile', 'sms_type_partner'],
'validatePartnerCode' => ['mobile', 'sms_type_partner', 'code'],
......
......@@ -2413,3 +2413,1839 @@
[ sql ] [ DB ] CONNECT:[ UseTime:0.036265s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.030725s ]
[ sql ] [ SQL ] SELECT `uuid`,`name`,`mobile`,`avatar`,`attribute`,`create_time` FROM `user` WHERE `mobile` = '13302516727' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.029167s ]
---------------------------------------------------------------
[ 2019-03-12T10:51:15+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.069541s] [吞吐率:14.38req/s] [内存消耗:1,933.30kb] [文件加载:46]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'b0cbce35-5a35-41e5-ad41-2a30ba20198b',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------671448046831432901499895',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => 'a4de204577928bcdaa7e7a462cd7797e',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:51:24+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.158845s] [吞吐率:6.30req/s] [内存消耗:2,636.18kb] [文件加载:51]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------111041498195645750957838',
'cache-control' => 'no-cache',
'postman-token' => '2aa7d126-fef4-4058-a4bb-9d57c7166182',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.058474s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.019395s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.017762s ]
---------------------------------------------------------------
[ 2019-03-12T10:53:20+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.181016s] [吞吐率:5.52req/s] [内存消耗:2,639.09kb] [文件加载:50]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------946595781009262913828834',
'cache-control' => 'no-cache',
'postman-token' => '1325295f-ddea-4e74-97de-89d19cb2331e',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.047434s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.041854s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.028982s ]
---------------------------------------------------------------
[ 2019-03-12T10:53:26+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.090239s] [吞吐率:11.08req/s] [内存消耗:1,933.30kb] [文件加载:46]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '87832138-0f51-4ba6-bd79-041f97a41fbf',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------891443304411431322485190',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => 'a4de204577928bcdaa7e7a462cd7797e',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:53:35+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.056746s] [吞吐率:17.62req/s] [内存消耗:1,933.30kb] [文件加载:46]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '979b2ae4-8305-47ff-bcd9-8765f15fe481',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------457149312850036006688029',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516725',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:53:42+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.187834s] [吞吐率:5.32req/s] [内存消耗:2,630.63kb] [文件加载:51]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '24e270e1-43c3-4af4-ba99-82c0fab73a06',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------015104422508425605587794',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.034431s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.016936s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.020665s ]
[ sql ] [ SQL ] INSERT INTO `user` (`uuid` , `mobile` , `name` , `create_time` , `password`) VALUES ('02a2a43df4ed782cd14b3a96d87311ca' , '13302516724' , '13*****6724' , '2019-03-12 10:53:42' , '14e1b600b1fd579f47433b88e8d85291') [ RunTime:0.018654s ]
---------------------------------------------------------------
[ 2019-03-12T10:53:54+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.039389s] [吞吐率:25.39req/s] [内存消耗:1,933.30kb] [文件加载:46]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '6810961a-8428-43ae-8abc-10fc39dafa28',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------293828591611725192827954',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:54:03+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.061476s] [吞吐率:16.27req/s] [内存消耗:1,933.30kb] [文件加载:46]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'ffdd2a90-76e7-4495-800c-3dbc18b0b20f',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------963613087077328753245202',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:54:06+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.212303s] [吞吐率:4.71req/s] [内存消耗:2,636.27kb] [文件加载:51]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '2bd140fb-6f6b-4c9f-9743-8c307e480f41',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------155421723669779984422153',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.068621s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.030864s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.034853s ]
---------------------------------------------------------------
[ 2019-03-12T10:54:27+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.043414s] [吞吐率:23.03req/s] [内存消耗:1,552.39kb] [文件加载:37]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '30ed2790-bfd6-4282-97ad-b4c1f15fcc22',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------208275757573948518941400',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:54:32+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.029627s] [吞吐率:33.75req/s] [内存消耗:1,552.39kb] [文件加载:37]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'f119dd19-d846-4242-b2d9-0986cadb1a47',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------318396646232571854458927',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:55:34+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.038390s] [吞吐率:26.05req/s] [内存消耗:1,662.24kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '67e9b218-8b87-4f94-a54c-e38c62927c06',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------947727750287936490652078',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [4096]Object of class think\response\Json could not be converted to string[/Project/LocalPHP/personal/app/api/controller/Send.php:87]
---------------------------------------------------------------
[ 2019-03-12T10:55:53+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.048687s] [吞吐率:20.54req/s] [内存消耗:1,660.23kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'b787229d-31bd-4906-b54a-2ac6f12ac324',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------852787111255039337188700',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [4096]Object of class think\response\Json could not be converted to string[/Project/LocalPHP/personal/app/api/controller/Send.php:87]
---------------------------------------------------------------
[ 2019-03-12T10:56:15+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.047663s] [吞吐率:20.98req/s] [内存消耗:1,611.07kb] [文件加载:40]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '852d0b3c-62d7-459b-89d4-a15ca80bafe3',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------782362278084861766243922',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:56:20+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.028585s] [吞吐率:34.98req/s] [内存消耗:1,611.07kb] [文件加载:40]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'ec0041a0-f1d8-4c44-8d6a-8145c6eedd02',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------780905418586200745772761',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:57:23+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.049130s] [吞吐率:20.35req/s] [内存消耗:1,577.35kb] [文件加载:38]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '2d271c8e-4d3c-48c5-a636-889c14fe1601',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------998356771562218455544935',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T10:57:45+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.048303s] [吞吐率:20.70req/s] [内存消耗:1,661.96kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'b3ad1ef7-69fa-489b-877b-04e2355f1e79',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------820159052703236361487191',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [4096]Object of class think\response\Json could not be converted to string[/Project/LocalPHP/personal/app/api/controller/Send.php:86]
---------------------------------------------------------------
[ 2019-03-12T10:57:56+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.043781s] [吞吐率:22.84req/s] [内存消耗:1,659.83kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '4c07e37b-4b47-4639-b02d-88a72b5f48d6',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------393383388733843112088589',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [4096]Object of class think\response\Json could not be converted to string[/Project/LocalPHP/personal/app/api/controller/Send.php:86]
---------------------------------------------------------------
[ 2019-03-12T10:58:04+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.030908s] [吞吐率:32.35req/s] [内存消耗:1,658.13kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '80cca37e-0629-4abe-b167-0cbd558ce283',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------504618017287409956961948',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [4096]Object of class think\response\Json could not be converted to string[/Project/LocalPHP/personal/app/api/controller/Send.php:86]
---------------------------------------------------------------
[ 2019-03-12T10:58:12+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.045485s] [吞吐率:21.99req/s] [内存消耗:1,657.51kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'bf9a177b-02f3-407b-94a1-56185af88a4b',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------759412333023359656341815',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [4096]Object of class think\response\Json could not be converted to string[/Project/LocalPHP/personal/app/api/controller/Send.php:86]
---------------------------------------------------------------
[ 2019-03-12T10:59:20+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/validateMobile
[运行时间:0.045416s] [吞吐率:22.02req/s] [内存消耗:1,552.39kb] [文件加载:37]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'validateMobile',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '9605c75d-f5d6-4790-bec3-142fcbbcc8e7',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------907098887317153809165087',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->validateMobile[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T11:24:01+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.074701s] [吞吐率:13.39req/s] [内存消耗:1,655.56kb] [文件加载:42]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => '5f95b9f0-a57d-4672-aadc-52368272fcba',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------804732249131190956866725',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [0]致命错误: Class 'app\api\controller\v1\app\Request' not found[/Project/LocalPHP/personal/app/api/controller/v1/app/User.php:215]
---------------------------------------------------------------
[ 2019-03-12T11:27:04+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.093307s] [吞吐率:10.72req/s] [内存消耗:1,656.79kb] [文件加载:42]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => 'd8cab3b8-2872-4236-b2c4-67bc508fa02e',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------876826766087497329795545',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [0]类型错误: Too few arguments to function app\api\controller\Api::checkHeader(), 0 passed in /Project/LocalPHP/personal/app/api/controller/v1/app/User.php on line 215 and at least 2 expected[/Project/LocalPHP/personal/app/api/controller/Api.php:168]
---------------------------------------------------------------
[ 2019-03-12T11:27:41+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.074734s] [吞吐率:13.38req/s] [内存消耗:1,576.90kb] [文件加载:38]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => '3906483a-ebe7-42fa-823d-4508d3146a70',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------597543669424363653756139',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T11:35:49+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.301415s] [吞吐率:3.32req/s] [内存消耗:1,658.27kb] [文件加载:42]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => 'a36ad56f-8cb5-41e0-91a9-3c970b8eae9d',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------558273538380084835420272',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
[ error ] [0]致命错误: Class 'app\api\controller\Cache' not found[/Project/LocalPHP/personal/app/api/controller/Api.php:172]
---------------------------------------------------------------
[ 2019-03-12T11:36:20+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.041690s] [吞吐率:23.99req/s] [内存消耗:1,679.38kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => '3be0f43a-f404-4451-88e4-82cb0a6d7143',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------196888159633873555161773',
'content-length' => '535',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'token' => '648fe2d877e5b65c7757876768c05012',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T11:36:26+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.034011s] [吞吐率:29.40req/s] [内存消耗:1,679.25kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => 'f4ca8c68-3afd-40e1-b215-83510fcff9ea',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------640010045112585100571904',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T11:52:21+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.202040s] [吞吐率:4.95req/s] [内存消耗:2,638.25kb] [文件加载:51]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------237483227926225973417796',
'cache-control' => 'no-cache',
'postman-token' => 'ebcbc419-e89d-4099-a69b-79cbc80c5f74',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.070660s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.024225s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.027879s ]
---------------------------------------------------------------
[ 2019-03-12T11:53:49+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.196684s] [吞吐率:5.08req/s] [内存消耗:2,681.81kb] [文件加载:53]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------649632992209333956356849',
'cache-control' => 'no-cache',
'postman-token' => '7ceb24fd-ec2b-4e2e-9616-3ee2e7f3ff15',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.040000s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.025905s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.025069s ]
[ error ] [2]Invalid argument supplied for foreach()[/Project/LocalPHP/personal/app/api/controller/Send.php:193]
---------------------------------------------------------------
[ 2019-03-12T11:55:01+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.160997s] [吞吐率:6.21req/s] [内存消耗:2,681.87kb] [文件加载:53]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------071917414234888655581800',
'cache-control' => 'no-cache',
'postman-token' => 'e21d04b1-ee1f-4c46-9a17-e32b97aca9f1',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.044725s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.029984s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.024325s ]
[ error ] [2]Invalid argument supplied for foreach()[/Project/LocalPHP/personal/app/api/controller/Send.php:193]
---------------------------------------------------------------
[ 2019-03-12T11:55:37+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.165280s] [吞吐率:6.05req/s] [内存消耗:2,577.08kb] [文件加载:47]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------686862432374321098059122',
'cache-control' => 'no-cache',
'postman-token' => '2847a94d-6ac0-41eb-9ca7-08be558ba7f5',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.060912s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.029211s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.027455s ]
---------------------------------------------------------------
[ 2019-03-12T11:55:51+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.159943s] [吞吐率:6.25req/s] [内存消耗:2,577.08kb] [文件加载:47]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------066366539145224904435235',
'cache-control' => 'no-cache',
'postman-token' => 'c4d382d2-6ffc-4d0b-a557-17c220731895',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.048372s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.022342s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.022389s ]
---------------------------------------------------------------
[ 2019-03-12T11:56:07+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.152476s] [吞吐率:6.56req/s] [内存消耗:2,637.87kb] [文件加载:51]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------537280073190725630785627',
'cache-control' => 'no-cache',
'postman-token' => '42d9bd60-3f4d-49fb-8498-3f726785d6f1',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.044684s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.018067s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.020577s ]
---------------------------------------------------------------
[ 2019-03-12T11:57:47+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.842032s] [吞吐率:1.19req/s] [内存消耗:3,157.51kb] [文件加载:71]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------612109506448286167876679',
'cache-control' => 'no-cache',
'postman-token' => '56b27d45-549a-4554-bbe9-4d326083386d',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.052609s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.020424s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.022600s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `sms` [ RunTime:0.030185s ]
[ sql ] [ SQL ] UPDATE `sms` SET `is_effected`=0,`update_time`='2019-03-12 11:57:47' WHERE `mobile` = '13302516724' AND `sms_type` = 'pass' [ RunTime:0.023306s ]
[ sql ] [ SQL ] INSERT INTO `sms` (`uuid` , `mobile` , `sms_type` , `sms_code` , `send_result` , `create_time` , `update_time`) VALUES ('024ab75fb1a9827509cd643c6d5ee8b9' , '13302516724' , 'pass' , '868901' , 'ok' , '2019-03-12 11:57:47' , '2019-03-12 11:57:47') [ RunTime:0.033911s ]
---------------------------------------------------------------
[ 2019-03-12T11:58:17+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/Send/validate
[运行时间:0.291694s] [吞吐率:3.43req/s] [内存消耗:3,141.02kb] [文件加载:65]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.Send',
2 => 'validateCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => '420003ab-64d0-4d96-9537-107cdbad5410',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------090605819028725727489448',
'content-length' => '281',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'code' => '868901',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\Send->validateCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/Send.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.050129s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.027508s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.032517s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `sms` [ RunTime:0.029472s ]
[ sql ] [ SQL ] SELECT * FROM `sms` WHERE `mobile` = '13302516724' AND `sms_type` = 'pass' AND `is_effected` = 1 ORDER BY `create_time` DESC LIMIT 1 [ RunTime:0.024907s ]
[ sql ] [ SQL ] UPDATE `sms` SET `is_effected`=0 WHERE `uuid` = '024ab75fb1a9827509cd643c6d5ee8b9' [ RunTime:0.031046s ]
---------------------------------------------------------------
[ 2019-03-12T11:58:33+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.033939s] [吞吐率:29.46req/s] [内存消耗:1,680.23kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => '648fe2d877e5b65c7757876768c05012',
'cache-control' => 'no-cache',
'postman-token' => '32e3ab52-2786-425c-9863-6c8d330f2358',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------655219633559696915885352',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T11:58:46+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.047309s] [吞吐率:21.14req/s] [内存消耗:1,680.23kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => '446ff447-6a7b-4a5a-905c-877faa82c363',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------504702598967373951806203',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516723',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T11:58:51+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.468138s] [吞吐率:2.14req/s] [内存消耗:2,777.70kb] [文件加载:57]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => '3184819c-7d1c-4778-b545-6b6a3bc79462',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------706185232563110295380335',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.046638s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.027318s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.021256s ]
[ sql ] [ SQL ] INSERT INTO `user` (`uuid` , `mobile` , `name` , `create_time` , `password`) VALUES ('36a693d12343ba0af706edc39991f055' , '13302516724' , '13*****6724' , '2019-03-12 11:58:51' , '14e1b600b1fd579f47433b88e8d85291') [ RunTime:0.026987s ]
[ sql ] [ SQL ] SELECT `uuid`,`name`,`mobile`,`avatar`,`attribute`,`create_time` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.027031s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `token` [ RunTime:0.027267s ]
[ sql ] [ SQL ] SELECT `access_token`,`refresh_token`,`expiry_time` FROM `token` WHERE `user_uuid` = '36a693d12343ba0af706edc39991f055' LIMIT 1 [ RunTime:0.023677s ]
[ sql ] [ SQL ] INSERT INTO `token` (`update_time` , `expiry_time` , `uuid` , `access_token` , `refresh_token` , `user_uuid` , `create_time`) VALUES ('2019-03-12 11:58:51' , '2019-03-19 11:58:51' , '4ed2bc0900838cd12241e07ab89c75d4' , 'c84583328d194c78a0d88a9cd6609d16' , 'd74a79e55f33d1b1c60a4795d725adcb' , '36a693d12343ba0af706edc39991f055' , '2019-03-12 11:58:51') [ RunTime:0.029185s ]
[ sql ] [ SQL ] SELECT `name` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.025513s ]
[ error ] [8]未定义数组索引: token[/Project/LocalPHP/personal/app/api/controller/v1/app/User.php:224]
---------------------------------------------------------------
[ 2019-03-12T12:01:24+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.202395s] [吞吐率:4.94req/s] [内存消耗:2,702.81kb] [文件加载:54]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => '78ceaac0-b8ea-4e84-8d62-ee81db29b03d',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------567886263106019111321611',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.053217s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.028792s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.049551s ]
---------------------------------------------------------------
[ 2019-03-12T12:01:40+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.189410s] [吞吐率:5.28req/s] [内存消耗:2,702.81kb] [文件加载:54]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => '2a34afff-7bd9-49ea-bc73-ececd512e7c0',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------808773504120488205800743',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.066366s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.028957s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.027942s ]
---------------------------------------------------------------
[ 2019-03-12T12:01:54+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.150103s] [吞吐率:6.66req/s] [内存消耗:2,703.06kb] [文件加载:54]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => 'fc470be6-843e-4ab4-b226-0d02ec2f2da8',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------565978694027230431472248',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.039424s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.031027s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.021362s ]
---------------------------------------------------------------
[ 2019-03-12T12:01:56+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.027977s] [吞吐率:35.74req/s] [内存消耗:1,680.15kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => '7406f908-8697-49f9-a492-e0888680b1e9',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------355680715428304368319788',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T12:06:28+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/sendCode
[运行时间:0.887801s] [吞吐率:1.13req/s] [内存消耗:3,157.17kb] [文件加载:71]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'sendCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=--------------------------540499492787285106895900',
'cache-control' => 'no-cache',
'postman-token' => '757959dc-f58a-48fa-9296-af0cb04900a2',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-length' => '172',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->sendCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.067236s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.017981s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.022142s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `sms` [ RunTime:0.021955s ]
[ sql ] [ SQL ] UPDATE `sms` SET `is_effected`=0,`update_time`='2019-03-12 12:06:28' WHERE `mobile` = '13302516724' AND `sms_type` = 'pass' [ RunTime:0.025427s ]
[ sql ] [ SQL ] INSERT INTO `sms` (`uuid` , `mobile` , `sms_type` , `sms_code` , `send_result` , `create_time` , `update_time`) VALUES ('aff752acda72b500973346f3ad561466' , '13302516724' , 'pass' , '862518' , 'ok' , '2019-03-12 12:06:28' , '2019-03-12 12:06:28') [ RunTime:0.031685s ]
---------------------------------------------------------------
[ 2019-03-12T12:06:50+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/Send/validate
[运行时间:0.278168s] [吞吐率:3.59req/s] [内存消耗:3,140.64kb] [文件加载:65]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.Send',
2 => 'validateCode',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'cache-control' => 'no-cache',
'postman-token' => 'c99fd95d-b05f-4e7e-9a01-1b458ef59606',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------242010001819905446750068',
'content-length' => '281',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'code' => '862518',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\Send->validateCode[ /Project/LocalPHP/personal/app/api/controller/v1/app/Send.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.052074s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.028552s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.027131s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `sms` [ RunTime:0.034208s ]
[ sql ] [ SQL ] SELECT * FROM `sms` WHERE `mobile` = '13302516724' AND `sms_type` = 'pass' AND `is_effected` = 1 ORDER BY `create_time` DESC LIMIT 1 [ RunTime:0.018595s ]
[ sql ] [ SQL ] UPDATE `sms` SET `is_effected`=0 WHERE `uuid` = 'aff752acda72b500973346f3ad561466' [ RunTime:0.036438s ]
---------------------------------------------------------------
[ 2019-03-12T12:06:59+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.027377s] [吞吐率:36.53req/s] [内存消耗:1,679.90kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'e1d6a6fabfaaaccda3243e88c7146d0f',
'cache-control' => 'no-cache',
'postman-token' => '9e21d370-53f9-4d0b-9939-50d0f24b93c5',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------248988737571976944648822',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T12:07:08+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.027792s] [吞吐率:35.98req/s] [内存消耗:1,679.90kb] [文件加载:44]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'd7b194c361f9d58d2c0f33fa36af6241',
'cache-control' => 'no-cache',
'postman-token' => '00d7084c-d1ed-4c19-8f1b-92d6ee06bc57',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------988198240865740951636221',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516723',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T12:07:14+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.025398s] [吞吐率:39.37req/s] [内存消耗:1,616.45kb] [文件加载:41]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'd7b194c361f9d58d2c0f33fa36af6241',
'cache-control' => 'no-cache',
'postman-token' => '6b8d932d-1fb7-43b1-91c4-5ce07334ad3f',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------151679800183490250175477',
'content-length' => '400',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '1234564',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ LOG ] INIT File
---------------------------------------------------------------
[ 2019-03-12T12:07:18+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.439460s] [吞吐率:2.28req/s] [内存消耗:2,733.30kb] [文件加载:55]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'd7b194c361f9d58d2c0f33fa36af6241',
'cache-control' => 'no-cache',
'postman-token' => 'e32a2ad6-896e-481e-acd1-8705243bd475',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------781970052754032539678685',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ CACHE ] INIT File
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.046825s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.019604s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.018110s ]
[ sql ] [ SQL ] INSERT INTO `user` (`uuid` , `mobile` , `name` , `create_time` , `password`) VALUES ('f0275a278bbd566fe98fc96c1927579b' , '13302516724' , '13*****6724' , '2019-03-12 12:07:18' , '14e1b600b1fd579f47433b88e8d85291') [ RunTime:0.018445s ]
[ sql ] [ SQL ] SELECT `uuid`,`name`,`mobile`,`avatar`,`attribute`,`create_time` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.022942s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `token` [ RunTime:0.022494s ]
[ sql ] [ SQL ] SELECT `access_token`,`refresh_token`,`expiry_time` FROM `token` WHERE `user_uuid` = 'f0275a278bbd566fe98fc96c1927579b' LIMIT 1 [ RunTime:0.015939s ]
[ sql ] [ SQL ] INSERT INTO `token` (`update_time` , `expiry_time` , `uuid` , `access_token` , `refresh_token` , `user_uuid` , `create_time`) VALUES ('2019-03-12 12:07:18' , '2019-03-19 12:07:18' , 'c3cbe68df9c4b438b6e9dca044df8408' , 'b34c3b7415065ea7206411380dc99b68' , '110a998291d1f18ea36c2024b74da0dc' , 'f0275a278bbd566fe98fc96c1927579b' , '2019-03-12 12:07:18') [ RunTime:0.133271s ]
[ sql ] [ SQL ] SELECT `name` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.019357s ]
---------------------------------------------------------------
[ 2019-03-12T12:08:20+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.221349s] [吞吐率:4.52req/s] [内存消耗:2,668.63kb] [文件加载:52]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'd7b194c361f9d58d2c0f33fa36af6241',
'cache-control' => 'no-cache',
'postman-token' => '1adc7f25-1639-4617-ad26-df315dc3e1b3',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------303634991161819531025859',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.028465s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.011122s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.010745s ]
[ sql ] [ SQL ] INSERT INTO `user` (`uuid` , `mobile` , `name` , `create_time` , `password`) VALUES ('56a7bd644ba317593d49768e76352ef9' , '13302516724' , '13*****6724' , '2019-03-12 12:08:19' , '14e1b600b1fd579f47433b88e8d85291') [ RunTime:0.011712s ]
[ sql ] [ SQL ] SELECT `uuid`,`name`,`mobile`,`avatar`,`attribute`,`create_time` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.011813s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `token` [ RunTime:0.033527s ]
[ sql ] [ SQL ] SELECT `access_token`,`refresh_token`,`expiry_time` FROM `token` WHERE `user_uuid` = '56a7bd644ba317593d49768e76352ef9' LIMIT 1 [ RunTime:0.011789s ]
[ sql ] [ SQL ] INSERT INTO `token` (`update_time` , `expiry_time` , `uuid` , `access_token` , `refresh_token` , `user_uuid` , `create_time`) VALUES ('2019-03-12 12:08:20' , '2019-03-19 12:08:20' , '83d2053d122a6b14e99f8d48c4ff8b36' , '37d6c0687c3e832b7b7ae10c1f795410' , 'f6f1c3b458c95618b7417729bb731b36' , '56a7bd644ba317593d49768e76352ef9' , '2019-03-12 12:08:20') [ RunTime:0.012731s ]
[ sql ] [ SQL ] SELECT `name` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.010267s ]
---------------------------------------------------------------
[ 2019-03-12T12:09:57+08:00 ] 0.0.0.0 POST localhost/personal/public/index.php/v1/app/User/register
[运行时间:0.420759s] [吞吐率:2.38req/s] [内存消耗:2,668.63kb] [文件加载:52]
[ info ] [ LANG ] /Project/LocalPHP/personal/thinkphp/lang/zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'v1.app.User',
2 => 'register',
),
'convert' => false,
)
[ info ] [ HEADER ] array (
'regitser-access-token' => 'd7b194c361f9d58d2c0f33fa36af6241',
'cache-control' => 'no-cache',
'postman-token' => '05dad7bd-c71c-4374-a53c-741fad89b552',
'user-agent' => 'PostmanRuntime/7.6.0',
'accept' => '*/*',
'host' => 'localhost',
'cookie' => 'PHPSESSID=ce3b59fdef50cf4addc34516950354ef',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------068587135465027334147943',
'content-length' => '399',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'mobile' => '13302516724',
'password' => '123456',
'password2' => '123456',
'version' => 'v1',
)
[ info ] [ RUN ] app\api\controller\v1\app\User->register[ /Project/LocalPHP/personal/app/api/controller/v1/app/User.php ]
[ info ] [ DB ] INIT mysql
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.056862s ] mysql:host=db.dankal.cn;port=3306;dbname=template;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.037576s ]
[ sql ] [ SQL ] SELECT * FROM `user` WHERE `mobile` = '13302516724' LIMIT 1 [ RunTime:0.025558s ]
[ sql ] [ SQL ] INSERT INTO `user` (`uuid` , `mobile` , `name` , `create_time` , `password`) VALUES ('654be884709e1987b3d860319e27a82f' , '13302516724' , '13*****6724' , '2019-03-12 12:09:57' , '14e1b600b1fd579f47433b88e8d85291') [ RunTime:0.040235s ]
[ sql ] [ SQL ] SELECT `uuid`,`name`,`mobile`,`avatar`,`attribute`,`create_time` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.032834s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `token` [ RunTime:0.024987s ]
[ sql ] [ SQL ] SELECT `access_token`,`refresh_token`,`expiry_time` FROM `token` WHERE `user_uuid` = '654be884709e1987b3d860319e27a82f' LIMIT 1 [ RunTime:0.028277s ]
[ sql ] [ SQL ] INSERT INTO `token` (`update_time` , `expiry_time` , `uuid` , `access_token` , `refresh_token` , `user_uuid` , `create_time`) VALUES ('2019-03-12 12:09:57' , '2019-03-19 12:09:57' , '31eaeac81684f1cddc7a2cb590ba6019' , '5fbd0140d2dc66021cb6d8de9ca62104' , 'ae70c309d292abffa8fccf975393e3f7' , '654be884709e1987b3d860319e27a82f' , '2019-03-12 12:09:57') [ RunTime:0.021149s ]
[ sql ] [ SQL ] SELECT `name` FROM `user` WHERE `mobile` = '13302516724' AND `password` = '14e1b600b1fd579f47433b88e8d85291' LIMIT 1 [ RunTime:0.029779s ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment