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

调试提现

@@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
2 <project version="4"> 2 <project version="4">
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment=""> 4 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
5 - <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />  
6 <change beforePath="$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php" afterDir="false" /> 5 <change beforePath="$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php" afterDir="false" />
7 </list> 6 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 7 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -50,8 +49,8 @@ @@ -50,8 +49,8 @@
50 <file leaf-file-name="UserMoneyLogAudit.php" pinned="false" current-in-tab="true"> 49 <file leaf-file-name="UserMoneyLogAudit.php" pinned="false" current-in-tab="true">
51 <entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php"> 50 <entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php">
52 <provider selected="true" editor-type-id="text-editor"> 51 <provider selected="true" editor-type-id="text-editor">
53 - <state relative-caret-position="640">  
54 - <caret line="118" column="76" selection-start-line="118" selection-start-column="76" selection-end-line="118" selection-end-column="76" /> 52 + <state relative-caret-position="453">
  53 + <caret line="155" column="35" selection-start-line="155" selection-start-column="35" selection-end-line="155" selection-end-column="35" />
55 <folding> 54 <folding>
56 <element signature="e#40#74#0#PHP" expanded="true" /> 55 <element signature="e#40#74#0#PHP" expanded="true" />
57 </folding> 56 </folding>
@@ -337,7 +336,7 @@ @@ -337,7 +336,7 @@
337 <workItem from="1572087949120" duration="1641000" /> 336 <workItem from="1572087949120" duration="1641000" />
338 <workItem from="1572223206994" duration="28857000" /> 337 <workItem from="1572223206994" duration="28857000" />
339 <workItem from="1572309778506" duration="26117000" /> 338 <workItem from="1572309778506" duration="26117000" />
340 - <workItem from="1572395935540" duration="9887000" /> 339 + <workItem from="1572395935540" duration="9942000" />
341 </task> 340 </task>
342 <task id="LOCAL-00001" summary="数据库配置"> 341 <task id="LOCAL-00001" summary="数据库配置">
343 <created>1571972429395</created> 342 <created>1571972429395</created>
@@ -542,11 +541,18 @@ @@ -542,11 +541,18 @@
542 <option name="project" value="LOCAL" /> 541 <option name="project" value="LOCAL" />
543 <updated>1572416044863</updated> 542 <updated>1572416044863</updated>
544 </task> 543 </task>
545 - <option name="localTasksCounter" value="30" /> 544 + <task id="LOCAL-00030" summary="调试提现">
  545 + <created>1572416100217</created>
  546 + <option name="number" value="00030" />
  547 + <option name="presentableId" value="LOCAL-00030" />
  548 + <option name="project" value="LOCAL" />
  549 + <updated>1572416100217</updated>
  550 + </task>
  551 + <option name="localTasksCounter" value="31" />
546 <servers /> 552 <servers />
547 </component> 553 </component>
548 <component name="TimeTrackingManager"> 554 <component name="TimeTrackingManager">
549 - <option name="totallyTimeSpent" value="195112000" /> 555 + <option name="totallyTimeSpent" value="195167000" />
550 </component> 556 </component>
551 <component name="ToolWindowManager"> 557 <component name="ToolWindowManager">
552 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 558 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -960,8 +966,8 @@ @@ -960,8 +966,8 @@
960 </entry> 966 </entry>
961 <entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php"> 967 <entry file="file://$PROJECT_DIR$/application/admin/controller/UserMoneyLogAudit.php">
962 <provider selected="true" editor-type-id="text-editor"> 968 <provider selected="true" editor-type-id="text-editor">
963 - <state relative-caret-position="640">  
964 - <caret line="118" column="76" selection-start-line="118" selection-start-column="76" selection-end-line="118" selection-end-column="76" /> 969 + <state relative-caret-position="453">
  970 + <caret line="155" column="35" selection-start-line="155" selection-start-column="35" selection-end-line="155" selection-end-column="35" />
965 <folding> 971 <folding>
966 <element signature="e#40#74#0#PHP" expanded="true" /> 972 <element signature="e#40#74#0#PHP" expanded="true" />
967 </folding> 973 </folding>
@@ -153,7 +153,16 @@ class UserMoneyLogAudit extends Backend @@ -153,7 +153,16 @@ class UserMoneyLogAudit extends Backend
153 } 153 }
154 154
155 public function merchantPay($openid,$user_name,$price,$desc){ 155 public function merchantPay($openid,$user_name,$price,$desc){
156 - $options = config('wechat'); 156 + $options = [
  157 + 'app_id' => config('wechat.app_id'),
  158 + 'secret' => config('wechat.app_secret'),
  159 + 'payment' => [
  160 + 'merchant_id' => config('wechat.merchant_id'),
  161 + 'key' => config('wechat.key'),
  162 + 'cert_path' => config('wechat.cert_path'),
  163 + 'key_path' => config('wechat.key_path'),
  164 + ],
  165 + ];
157 dump($options); 166 dump($options);
158 $app = new Application($options); 167 $app = new Application($options);
159 $merchantPay = $app->merchant_pay; 168 $merchantPay = $app->merchant_pay;
@@ -46,8 +46,8 @@ return [ @@ -46,8 +46,8 @@ return [
46 * 微信支付 46 * 微信支付
47 */ 47 */
48 'payment' => [ 48 'payment' => [
49 - 'merchant_id' => '1509104971',  
50 - 'key' => 'ebfe7fba8f7a0fba3e19efcc547b956d', 49 + 'merchant_id' => '1559598041',
  50 + 'key' => 'JEV45KQewTHopscD9uQj0IBigQTtS2IF',
51 'cert_path' => 'wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!! 51 'cert_path' => 'wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!!
52 'key_path' => 'wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!! 52 'key_path' => 'wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!!
53 // 'device_info' => '013467007045764', 53 // 'device_info' => '013467007045764',