作者 王智

文档修改

@@ -1244,27 +1244,4 @@ class User extends Api @@ -1244,27 +1244,4 @@ class User extends Api
1244 $this->success('成功', $data); 1244 $this->success('成功', $data);
1245 } 1245 }
1246 1246
1247 -  
1248 - public function ceshi111()  
1249 - {  
1250 - //配置  
1251 - $options = [  
1252 - 'app_id' => 'wxf0764538543e66eb',  
1253 - 'payment' => [  
1254 - 'merchant_id' => '1604311610',  
1255 - 'key' => 'nbusy93Hqwe6390LSs4k2Dap1nxZvqps',  
1256 - 'cert_path' => '/home/wwwroot/fast/sedum/addons/epay/certs/apiclient_cert.pem', // XXX: 绝对路径!!!!  
1257 - 'key_path' => '/home/wwwroot/fast/sedum/addons/epay/certs/apiclient_key.pem', // XXX: 绝对路径!!!!  
1258 - ],  
1259 - ];  
1260 - $app = new Application($options);  
1261 - $payment = $app->payment;  
1262 - try {  
1263 - $result = $payment->refundByTransactionId('4200000941202103169022077095', '2021031651100579', 188 * 100, 188 * 100); // 总金额 100, 退款 80,操作员:商户号  
1264 - } catch (Exception $e) {  
1265 - $e->getMessage();  
1266 - }  
1267 - dump($result);  
1268 - die;  
1269 - }  
1270 } 1247 }