作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改总金额

... ... @@ -88,8 +88,8 @@
<file leaf-file-name="Pay.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="702">
<caret line="212" column="64" lean-forward="false" selection-start-line="212" selection-start-column="64" selection-end-line="212" selection-end-column="64" />
<state relative-caret-position="528">
<caret line="369" column="120" lean-forward="true" selection-start-line="369" selection-start-column="120" selection-end-line="369" selection-end-column="120" />
<folding>
<element signature="e#574#693#0#PHP" expanded="false" />
<element signature="e#699#1012#0#PHP" expanded="false" />
... ... @@ -97,24 +97,24 @@
<element signature="e#3099#3419#0#PHP" expanded="false" />
<element signature="e#3424#5506#0#PHP" expanded="false" />
<element signature="e#5512#5930#0#PHP" expanded="false" />
<element signature="e#5935#14175#0#PHP" expanded="false" />
<element signature="e#6179#6269#0#PHP" expanded="false" />
<element signature="e#6347#6443#0#PHP" expanded="false" />
<element signature="e#9132#11216#0#PHP" expanded="false" />
<element signature="e#11280#11398#0#PHP" expanded="false" />
<element signature="e#12255#14030#0#PHP" expanded="false" />
<element signature="e#14103#14523#0#PHP" expanded="false" />
<element signature="e#14528#22620#0#PHP" expanded="false" />
<element signature="e#22637#22934#0#PHP" expanded="false" />
<element signature="e#22939#23332#0#PHP" expanded="false" />
<element signature="e#23359#26837#0#PHP" expanded="false" />
<element signature="e#26866#29771#0#PHP" expanded="false" />
<element signature="e#29800#33863#0#PHP" expanded="false" />
<element signature="e#31623#31872#0#PHP" expanded="false" />
<element signature="e#31915#33352#0#PHP" expanded="false" />
<element signature="e#32374#33330#0#PHP" expanded="false" />
<element signature="e#33892#38355#0#PHP" expanded="false" />
<element signature="e#36122#37870#0#PHP" expanded="false" />
<element signature="e#38378#38595#0#PHP" expanded="false" />
<element signature="e#9210#11294#0#PHP" expanded="false" />
<element signature="e#11358#11476#0#PHP" expanded="false" />
<element signature="e#12333#14108#0#PHP" expanded="false" />
<element signature="e#14181#14601#0#PHP" expanded="false" />
<element signature="e#22793#23090#0#PHP" expanded="false" />
<element signature="e#23095#23488#0#PHP" expanded="false" />
<element signature="e#23515#26993#0#PHP" expanded="false" />
<element signature="e#27022#29927#0#PHP" expanded="false" />
<element signature="e#29956#34019#0#PHP" expanded="false" />
<element signature="e#31779#32028#0#PHP" expanded="false" />
<element signature="e#32071#33508#0#PHP" expanded="false" />
<element signature="e#32530#33486#0#PHP" expanded="false" />
<element signature="e#34048#38511#0#PHP" expanded="false" />
<element signature="e#36278#38026#0#PHP" expanded="false" />
<element signature="e#38534#38751#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ... @@ -207,8 +207,8 @@
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds">
<option name="x" value="120" />
<option name="y" value="42" />
<option name="x" value="209" />
<option name="y" value="43" />
<option name="width" value="1700" />
<option name="height" value="1000" />
</component>
... ... @@ -338,7 +338,7 @@
<workItem from="1575541798312" duration="2359000" />
<workItem from="1575592025964" duration="640000" />
<workItem from="1575599624364" duration="95000" />
<workItem from="1575680867057" duration="12849000" />
<workItem from="1575680867057" duration="13005000" />
</task>
<task id="LOCAL-00001" summary="调试">
<created>1574145133364</created>
... ... @@ -351,7 +351,7 @@
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="322748000" />
<option name="totallyTimeSpent" value="322904000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
... ... @@ -363,7 +363,7 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="120" y="42" width="1700" height="1000" extended-state="0" />
<frame x="209" y="43" width="1700" height="1000" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19512194" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
... ... @@ -860,8 +860,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="702">
<caret line="212" column="64" lean-forward="false" selection-start-line="212" selection-start-column="64" selection-end-line="212" selection-end-column="64" />
<state relative-caret-position="528">
<caret line="369" column="120" lean-forward="true" selection-start-line="369" selection-start-column="120" selection-end-line="369" selection-end-column="120" />
<folding>
<element signature="e#574#693#0#PHP" expanded="false" />
<element signature="e#699#1012#0#PHP" expanded="false" />
... ... @@ -869,24 +869,24 @@
<element signature="e#3099#3419#0#PHP" expanded="false" />
<element signature="e#3424#5506#0#PHP" expanded="false" />
<element signature="e#5512#5930#0#PHP" expanded="false" />
<element signature="e#5935#14175#0#PHP" expanded="false" />
<element signature="e#6179#6269#0#PHP" expanded="false" />
<element signature="e#6347#6443#0#PHP" expanded="false" />
<element signature="e#9132#11216#0#PHP" expanded="false" />
<element signature="e#11280#11398#0#PHP" expanded="false" />
<element signature="e#12255#14030#0#PHP" expanded="false" />
<element signature="e#14103#14523#0#PHP" expanded="false" />
<element signature="e#14528#22620#0#PHP" expanded="false" />
<element signature="e#22637#22934#0#PHP" expanded="false" />
<element signature="e#22939#23332#0#PHP" expanded="false" />
<element signature="e#23359#26837#0#PHP" expanded="false" />
<element signature="e#26866#29771#0#PHP" expanded="false" />
<element signature="e#29800#33863#0#PHP" expanded="false" />
<element signature="e#31623#31872#0#PHP" expanded="false" />
<element signature="e#31915#33352#0#PHP" expanded="false" />
<element signature="e#32374#33330#0#PHP" expanded="false" />
<element signature="e#33892#38355#0#PHP" expanded="false" />
<element signature="e#36122#37870#0#PHP" expanded="false" />
<element signature="e#38378#38595#0#PHP" expanded="false" />
<element signature="e#9210#11294#0#PHP" expanded="false" />
<element signature="e#11358#11476#0#PHP" expanded="false" />
<element signature="e#12333#14108#0#PHP" expanded="false" />
<element signature="e#14181#14601#0#PHP" expanded="false" />
<element signature="e#22793#23090#0#PHP" expanded="false" />
<element signature="e#23095#23488#0#PHP" expanded="false" />
<element signature="e#23515#26993#0#PHP" expanded="false" />
<element signature="e#27022#29927#0#PHP" expanded="false" />
<element signature="e#29956#34019#0#PHP" expanded="false" />
<element signature="e#31779#32028#0#PHP" expanded="false" />
<element signature="e#32071#33508#0#PHP" expanded="false" />
<element signature="e#32530#33486#0#PHP" expanded="false" />
<element signature="e#34048#38511#0#PHP" expanded="false" />
<element signature="e#36278#38026#0#PHP" expanded="false" />
<element signature="e#38534#38751#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ...
... ... @@ -206,7 +206,8 @@ class Pay extends Api
}else{
//是会员
$pic = Db::name('pic')->field('id,price,buy_num,money')->where('id',$v)->find();
Db::name('pic')->where('id',$pic['id'])->update(['buy_num'=>$pic['buy_num']+1,'money'=>$pic['money']+$pic['price']]);
$total_money = $pic['money'] + $pic['price'] * 0.75;
Db::name('pic')->where('id',$pic['id'])->update(['buy_num'=>$pic['buy_num']+1,'money'=>$total_money]);
}
}
//拼接发送短信的内容
... ... @@ -367,7 +368,8 @@ class Pay extends Api
}else{
//是会员
$pic = Db::name('pic')->field('id,price,buy_num,money')->where('id',$v)->find();
Db::name('pic')->where('id',$pic['id'])->update(['buy_num'=>$pic['buy_num']+1,'money'=>$pic['money']+$pic['price']]);
$total_money = $pic['money'] + $pic['price'] * 0.75;
Db::name('pic')->where('id',$pic['id'])->update(['buy_num'=>$pic['buy_num']+1,'money'=>$total_money]);
}
}
//拼接发送短信内容
... ...