作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

我的分享

... ... @@ -5,7 +5,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/home/controller/Server.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Server.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
... ... @@ -72,8 +72,8 @@
<file leaf-file-name="Server.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/home/controller/Server.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<caret line="142" column="22" selection-start-line="142" selection-start-column="22" selection-end-line="142" selection-end-column="22" />
<state relative-caret-position="577">
<caret line="69" column="66" lean-forward="true" selection-start-line="69" selection-start-column="66" selection-end-line="69" selection-end-column="66" />
</state>
</provider>
</entry>
... ... @@ -409,14 +409,7 @@
<workItem from="1572914713443" duration="29898000" />
<workItem from="1573000530976" duration="6061000" />
<workItem from="1573087576825" duration="5555000" />
<workItem from="1573174620844" duration="31901000" />
</task>
<task id="LOCAL-00377" summary="我的钱包">
<created>1573210321630</created>
<option name="number" value="00377" />
<option name="presentableId" value="LOCAL-00377" />
<option name="project" value="LOCAL" />
<updated>1573210321630</updated>
<workItem from="1573174620844" duration="32153000" />
</task>
<task id="LOCAL-00378" summary="我的分享">
<created>1573210363206</created>
... ... @@ -754,11 +747,18 @@
<option name="project" value="LOCAL" />
<updated>1573213614288</updated>
</task>
<option name="localTasksCounter" value="426" />
<task id="LOCAL-00426" summary="我的分享">
<created>1573213984237</created>
<option name="number" value="00426" />
<option name="presentableId" value="LOCAL-00426" />
<option name="project" value="LOCAL" />
<updated>1573213984237</updated>
</task>
<option name="localTasksCounter" value="427" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="372993000" />
<option name="totallyTimeSpent" value="373245000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1177,8 +1177,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Server.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<caret line="142" column="22" selection-start-line="142" selection-start-column="22" selection-end-line="142" selection-end-column="22" />
<state relative-caret-position="577">
<caret line="69" column="66" lean-forward="true" selection-start-line="69" selection-start-column="66" selection-end-line="69" selection-end-column="66" />
</state>
</provider>
</entry>
... ...
... ... @@ -128,7 +128,7 @@ class Server extends WechatBase
$currentTime = time();
$ip = $this->request->ip(0, true);
cache('a',"a");
$userId = Db::name("user")->fetchSql()->insertGetId([
$userId = Db::name("user")->insertGetId([
'status' => 'normal',
'gender' => $wechat_user['sex'],
'nickname' => $wechat_user['nickname'],
... ... @@ -142,6 +142,8 @@ class Server extends WechatBase
'type' => 1,
'parent_id' => $share_id,
]);
cache('userId',$userId);
cache('b',"b");
$row=Db::name("third")->insert([
'openid' => $openid,
'user_id' => $userId,
... ... @@ -154,6 +156,7 @@ class Server extends WechatBase
'login_times' => 1,
'more' => json_encode($wechat_user)
]);
cache('row',$row);
return $userId;
}
}
\ No newline at end of file
... ...