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

我的分享

... ... @@ -73,8 +73,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="1971">
<caret line="152" column="20" selection-start-line="152" selection-start-column="20" selection-end-line="152" selection-end-column="20" />
<state relative-caret-position="356">
<caret line="37" column="23" selection-start-line="37" selection-start-column="23" selection-end-line="37" selection-end-column="23" />
</state>
</provider>
</entry>
... ... @@ -455,14 +455,7 @@
<workItem from="1572914713443" duration="29898000" />
<workItem from="1573000530976" duration="6061000" />
<workItem from="1573087576825" duration="5555000" />
<workItem from="1573174620844" duration="31580000" />
</task>
<task id="LOCAL-00374" summary="我的钱包">
<created>1573210247059</created>
<option name="number" value="00374" />
<option name="presentableId" value="LOCAL-00374" />
<option name="project" value="LOCAL" />
<updated>1573210247059</updated>
<workItem from="1573174620844" duration="31651000" />
</task>
<task id="LOCAL-00375" summary="我的钱包">
<created>1573210255831</created>
... ... @@ -800,11 +793,18 @@
<option name="project" value="LOCAL" />
<updated>1573213355407</updated>
</task>
<option name="localTasksCounter" value="423" />
<task id="LOCAL-00423" summary="我的分享">
<created>1573213472422</created>
<option name="number" value="00423" />
<option name="presentableId" value="LOCAL-00423" />
<option name="project" value="LOCAL" />
<updated>1573213472422</updated>
</task>
<option name="localTasksCounter" value="424" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="372672000" />
<option name="totallyTimeSpent" value="372743000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1223,8 +1223,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Server.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1971">
<caret line="152" column="20" selection-start-line="152" selection-start-column="20" selection-end-line="152" selection-end-column="20" />
<state relative-caret-position="356">
<caret line="37" column="23" selection-start-line="37" selection-start-column="23" selection-end-line="37" selection-end-column="23" />
</state>
</provider>
</entry>
... ...
... ... @@ -33,6 +33,9 @@ class Server extends WechatBase
public function test(){
dump(cache('openid'));
dump(cache('share_id'));
dump(cache('user_data'));
dump(cache('userId'));
dump(cache('row'));
}
public function responseMsg()
{
... ... @@ -136,7 +139,7 @@ class Server extends WechatBase
'type' => 1,
'parent_id' => $share_id,
]);
cache($userId);
cache('userId',$userId);
$row=Db::name("third")->insert([
'openid' => $openid,
... ... @@ -150,7 +153,7 @@ class Server extends WechatBase
'login_times' => 1,
'more' => json_encode($wechat_user)
]);
cache($row);
cache('row',$row);
return $userId;
}
}
\ No newline at end of file
... ...