Browse Source

fix:回调

super-yimizi 2 months ago
parent
commit
6a38ef7483

+ 0 - 6
application/api/controller/Index.php

@@ -5,7 +5,6 @@ namespace app\api\controller;
 use app\common\controller\Api;
 use app\common\model\Feedback;
 use app\api\validate\Feedback as FeedbackValidate;
-use app\common\Service\Pay\PayOperService;
 /**
  * 首页接口
  */
@@ -20,11 +19,6 @@ class Index extends Api
      */
     public function index()
     {
-        // $result =  PayOperService::settle('20250628031925000000028802', '0.05','czdcd');
-        // echo "<pre>";
-        // print_r($result);
-        // echo "</pre>";
-        // exit;
         $this->success(__('User Center'));
     }
 

+ 4 - 0
application/api/controller/Pay.php

@@ -172,6 +172,10 @@ class Pay extends Base
         if($platform == ChannelEnum::CHANNEL_DOUYIN_MINI_PROGRAM){
             $order_data['out_order_no'] = $payModel->pay_sn;
         }
+        // echo  "<pre>";
+        // print_r(lcfirst(str_replace($payment, '', $platform)));
+        // echo  "</pre>";die();
+
         try {
             $payService = new PayService($payment, $platform);
 

+ 1 - 1
application/common/Service/Pay/PayOperService.php

@@ -312,7 +312,7 @@ class PayOperService
     public function getPayedFee($order, $order_type)
     {
         // 锁定读取所有已支付的记录,判断已支付金额
-        $pays = PayModel::where('type', $order_type)
+        $pays = PayModel::where('order_type', $order_type)
           ->where('status', PayEnum::PAY_STATUS_PAID)
           ->where('order_id', $order->id)
           ->lock(true)