1 Commits
1.0.1 ... 1.0.2

Author SHA1 Message Date
31b048a692 调整变量名 2023-09-08 08:04:40 +08:00
2 changed files with 7 additions and 8 deletions

View File

@@ -11,11 +11,11 @@ return [
'uri' => [
'unicom' => [
//下单
'order' => 'https://www.unicompayment.com/wappay3.0/httpservice/wapPayPageAction.do?reqcharset=UTF-8',
'order' => 'https://epay.10010.com/wappay3.0/httpservice/wapPayPageAction.do?reqcharset=UTF-8',
//查询
'query' => 'https://www.unicompayment.com/CashierWeb/query/order.htm?reqCharSet=UTF-8',
'query' => 'https://epay.10010.com/CashierWeb/query/order.htm?reqCharSet=UTF-8',
//单笔退款
'refund' => 'https://www.unicompayment.com/CashierWeb/trade/singleRefund.htm?reqCharSet=UTF-8',
'refund' => 'https://epay.10010.com/CashierWeb/trade/singleRefund.htm?reqCharSet=UTF-8',
],
'ysd' => [
'order' => env('APP_URL', 'https://card.ysd-bs.com'),

View File

@@ -96,7 +96,6 @@ class WoUnicomWeb
*/
public function callback($inputs)
{
info($inputs);
if (empty($inputs)) {
return '缺少必要参数';
}
@@ -136,7 +135,7 @@ class WoUnicomWeb
$payment->state = 'SUCCESS';
$payment->out_trade_no = $data['payfloodid'];
$payment->type = 'UNICOM';
$payment->type = Payment::TYPE_UNICOM_WEB;
$payment->paid_at = Carbon::now();
$payment->save();
$order->paid();
@@ -152,7 +151,7 @@ class WoUnicomWeb
$payment->state = Payment::STATE_SUCCESS;
$payment->out_trade_no = $data['payfloodid'];
$payment->type = Payment::TYPT_UNICOM_WEB;
$payment->type = Payment::TYPE_UNICOM_WEB;
$payment->paid_at = Carbon::now();
$payment->save();
$order->paid();
@@ -168,7 +167,7 @@ class WoUnicomWeb
$payment->state = 'SUCCESS';
$payment->out_trade_no = $data['payfloodid'];
$payment->type = 'UNICOM';
$payment->type = Payment::TYPE_UNICOM_WEB;
$payment->paid_at = Carbon::now();
$payment->save();
$order->paid();
@@ -184,7 +183,7 @@ class WoUnicomWeb
$payment->state = 'SUCCESS';
$payment->out_trade_no = $data['payfloodid'];
$payment->type = 'UNICOM';
$payment->type = Payment::TYPE_UNICOM_WEB;
$payment->paid_at = Carbon::now();
$payment->save();
$order->paid();