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

调试提现

... ... @@ -2,6 +2,7 @@
<project version="4">
<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/admin/controller/UserMoneyLogAudit.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
... ... @@ -49,8 +50,8 @@
<file leaf-file-name="UserMoneyLogAudit.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="453">
<caret line="119" column="35" selection-start-line="119" selection-start-column="35" selection-end-line="119" selection-end-column="35" />
<state relative-caret-position="640">
<caret line="118" column="76" selection-start-line="118" selection-start-column="76" selection-end-line="118" selection-end-column="76" />
<folding>
<element signature="e#40#74#0#PHP" expanded="true" />
</folding>
... ... @@ -336,7 +337,7 @@
<workItem from="1572087949120" duration="1641000" />
<workItem from="1572223206994" duration="28857000" />
<workItem from="1572309778506" duration="26117000" />
<workItem from="1572395935540" duration="9650000" />
<workItem from="1572395935540" duration="9887000" />
</task>
<task id="LOCAL-00001" summary="数据库配置">
<created>1571972429395</created>
... ... @@ -520,11 +521,32 @@
<option name="project" value="LOCAL" />
<updated>1572415790653</updated>
</task>
<option name="localTasksCounter" value="27" />
<task id="LOCAL-00027" summary="提现">
<created>1572415858859</created>
<option name="number" value="00027" />
<option name="presentableId" value="LOCAL-00027" />
<option name="project" value="LOCAL" />
<updated>1572415858859</updated>
</task>
<task id="LOCAL-00028" summary="调试提现">
<created>1572415926127</created>
<option name="number" value="00028" />
<option name="presentableId" value="LOCAL-00028" />
<option name="project" value="LOCAL" />
<updated>1572415926127</updated>
</task>
<task id="LOCAL-00029" summary="调试提现">
<created>1572416044863</created>
<option name="number" value="00029" />
<option name="presentableId" value="LOCAL-00029" />
<option name="project" value="LOCAL" />
<updated>1572416044863</updated>
</task>
<option name="localTasksCounter" value="30" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="194875000" />
<option name="totallyTimeSpent" value="195112000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -590,7 +612,8 @@
<MESSAGE value="证书" />
<MESSAGE value="支付" />
<MESSAGE value="提现" />
<option name="LAST_COMMIT_MESSAGE" value="提现" />
<MESSAGE value="调试提现" />
<option name="LAST_COMMIT_MESSAGE" value="调试提现" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/application/admin/model/Question.php">
... ... @@ -937,8 +960,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="453">
<caret line="119" column="35" selection-start-line="119" selection-start-column="35" selection-end-line="119" selection-end-column="35" />
<state relative-caret-position="640">
<caret line="118" column="76" selection-start-line="118" selection-start-column="76" selection-end-line="118" selection-end-column="76" />
<folding>
<element signature="e#40#74#0#PHP" expanded="true" />
</folding>
... ...
... ... @@ -115,13 +115,8 @@ class UserMoneyLogAudit extends Backend
if($params['type'] == 2){
//审核通过
$admin = Db::name('admin')->where(['id'=>$row['admin_id']])->find();
print_r($admin);
exit();
$user = Db::name('user')->where(['id'=>$row['user_id']])->find();
$third = Db::name('third')->where(['user_id'=>$row['user_id']])->find();
dump($row);
dump($user);
dump($third);
$user = Db::name('user')->where(['id'=>$admin['user_id']])->find();
$third = Db::name('third')->where(['user_id'=>$admin['user_id']])->find();
//红包券充值比例
$exp_ratio = Db::name('exp_ratio')->where(['id'=>1])->find();
$withdraw = $this->merchantPay($third['openid'],$user['nickname'],$row['money']*$exp_ratio['ratio']*0.01,'商户提现');
... ...