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

调试提现

... ... @@ -2,7 +2,6 @@
<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" />
... ... @@ -50,8 +49,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="640">
<caret line="118" column="76" selection-start-line="118" selection-start-column="76" selection-end-line="118" selection-end-column="76" />
<state relative-caret-position="453">
<caret line="155" column="35" selection-start-line="155" selection-start-column="35" selection-end-line="155" selection-end-column="35" />
<folding>
<element signature="e#40#74#0#PHP" expanded="true" />
</folding>
... ... @@ -337,7 +336,7 @@
<workItem from="1572087949120" duration="1641000" />
<workItem from="1572223206994" duration="28857000" />
<workItem from="1572309778506" duration="26117000" />
<workItem from="1572395935540" duration="9887000" />
<workItem from="1572395935540" duration="9942000" />
</task>
<task id="LOCAL-00001" summary="数据库配置">
<created>1571972429395</created>
... ... @@ -542,11 +541,18 @@
<option name="project" value="LOCAL" />
<updated>1572416044863</updated>
</task>
<option name="localTasksCounter" value="30" />
<task id="LOCAL-00030" summary="调试提现">
<created>1572416100217</created>
<option name="number" value="00030" />
<option name="presentableId" value="LOCAL-00030" />
<option name="project" value="LOCAL" />
<updated>1572416100217</updated>
</task>
<option name="localTasksCounter" value="31" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="195112000" />
<option name="totallyTimeSpent" value="195167000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -960,8 +966,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php">
<provider selected="true" editor-type-id="text-editor">
<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" />
<state relative-caret-position="453">
<caret line="155" column="35" selection-start-line="155" selection-start-column="35" selection-end-line="155" selection-end-column="35" />
<folding>
<element signature="e#40#74#0#PHP" expanded="true" />
</folding>
... ...
... ... @@ -153,7 +153,16 @@ class UserMoneyLogAudit extends Backend
}
public function merchantPay($openid,$user_name,$price,$desc){
$options = config('wechat');
$options = [
'app_id' => config('wechat.app_id'),
'secret' => config('wechat.app_secret'),
'payment' => [
'merchant_id' => config('wechat.merchant_id'),
'key' => config('wechat.key'),
'cert_path' => config('wechat.cert_path'),
'key_path' => config('wechat.key_path'),
],
];
dump($options);
$app = new Application($options);
$merchantPay = $app->merchant_pay;
... ...
... ... @@ -46,8 +46,8 @@ return [
* 微信支付
*/
'payment' => [
'merchant_id' => '1509104971',
'key' => 'ebfe7fba8f7a0fba3e19efcc547b956d',
'merchant_id' => '1559598041',
'key' => 'JEV45KQewTHopscD9uQj0IBigQTtS2IF',
'cert_path' => 'wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!!
'key_path' => 'wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!!
// 'device_info' => '013467007045764',
... ...