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

我的钱包

... ... @@ -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/Share.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Share.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
... ... @@ -63,8 +63,8 @@
<file leaf-file-name="Share.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/home/controller/Share.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="689">
<caret line="152" column="33" selection-start-line="152" selection-start-column="33" selection-end-line="152" selection-end-column="33" />
<state relative-caret-position="672">
<caret line="88" column="33" selection-start-line="88" selection-start-column="33" selection-end-line="88" selection-end-column="33" />
</state>
</provider>
</entry>
... ... @@ -401,21 +401,7 @@
<workItem from="1572914713443" duration="29898000" />
<workItem from="1573000530976" duration="6061000" />
<workItem from="1573087576825" duration="5555000" />
<workItem from="1573174620844" duration="19514000" />
</task>
<task id="LOCAL-00265" summary="我的钱包">
<created>1573180527205</created>
<option name="number" value="00265" />
<option name="presentableId" value="LOCAL-00265" />
<option name="project" value="LOCAL" />
<updated>1573180527205</updated>
</task>
<task id="LOCAL-00266" summary="我的钱包">
<created>1573180632942</created>
<option name="number" value="00266" />
<option name="presentableId" value="LOCAL-00266" />
<option name="project" value="LOCAL" />
<updated>1573180632942</updated>
<workItem from="1573174620844" duration="19773000" />
</task>
<task id="LOCAL-00267" summary="我的钱包">
<created>1573181281921</created>
... ... @@ -746,11 +732,25 @@
<option name="project" value="LOCAL" />
<updated>1573200152620</updated>
</task>
<option name="localTasksCounter" value="314" />
<task id="LOCAL-00314" summary="我的钱包">
<created>1573201422968</created>
<option name="number" value="00314" />
<option name="presentableId" value="LOCAL-00314" />
<option name="project" value="LOCAL" />
<updated>1573201422968</updated>
</task>
<task id="LOCAL-00315" summary="我的钱包">
<created>1573201523560</created>
<option name="number" value="00315" />
<option name="presentableId" value="LOCAL-00315" />
<option name="project" value="LOCAL" />
<updated>1573201523560</updated>
</task>
<option name="localTasksCounter" value="316" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="360606000" />
<option name="totallyTimeSpent" value="360865000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1146,10 +1146,10 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Collect.php">
<entry file="file://$PROJECT_DIR$/application/home/view/share/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="793">
<caret line="56" column="9" selection-start-line="56" selection-start-column="9" selection-end-line="56" selection-end-column="9" />
<state relative-caret-position="425">
<caret line="82" column="39" lean-forward="true" selection-start-line="82" selection-start-column="39" selection-end-line="82" selection-end-column="39" />
</state>
</provider>
</entry>
... ... @@ -1160,17 +1160,17 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/view/share/index.html">
<entry file="file://$PROJECT_DIR$/application/home/controller/Collect.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="425">
<caret line="82" column="39" lean-forward="true" selection-start-line="82" selection-start-column="39" selection-end-line="82" selection-end-column="39" />
<state relative-caret-position="793">
<caret line="56" column="9" selection-start-line="56" selection-start-column="9" selection-end-line="56" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Share.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="689">
<caret line="152" column="33" selection-start-line="152" selection-start-column="33" selection-end-line="152" selection-end-column="33" />
<state relative-caret-position="672">
<caret line="88" column="33" selection-start-line="88" selection-start-column="33" selection-end-line="88" selection-end-column="33" />
</state>
</provider>
</entry>
... ...
... ... @@ -86,7 +86,7 @@ class Share extends WechatBase
$image = \think\Image::open(ROOT_PATH."public/white.png");
$image->water($avatar_url,[300,100],100)
->water(ROOT_PATH."public/bg$type.png")
->water($url,[205,600],100)
->water($url,[207,600],100)
->save($savePath."poster_$user[id].png");
return "./uploads/poster$type/poster_$user[id].png";
}
... ... @@ -150,7 +150,7 @@ class Share extends WechatBase
file_put_contents($savePath.$file_name,$code);
//等比放大缩小二维码
$image = \think\Image::open($savePath.$file_name);
$image->thumb(270, 270,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
$image->thumb(260, 260,\think\Image::THUMB_SCALING)->save($savePath.$file_name);
}
return "./uploads/code_img/$file_name";
}
... ...