Procházet zdrojové kódy

ios内购支付又改了

lizhen_gitee před 1 rokem
rodič
revize
f3ddc4b29e
1 změnil soubory, kde provedl 3 přidání a 4 odebrání
  1. 3 4
      application/api/controller/Payios.php

+ 3 - 4
application/api/controller/Payios.php

@@ -232,7 +232,6 @@ class Payios extends Api
         $order_map = [
             'user_id' => $this->auth->id,
             'out_trade_no' => $out_trade_no,
-//            'transaction_id' => $transaction_id,
         ];
         $order_info = Db::name('pay_order')->where($order_map)->lock(true)->find();
         if (!$order_info) {
@@ -243,7 +242,7 @@ class Payios extends Api
         if ($order_info['order_status'] == 1) {
             Db::rollback();
             filePut($prefix.'早已完成');
-            $this->success('充值成');
+            $this->success('充值已完成');
         }
 
         // 验证支付状态
@@ -262,13 +261,13 @@ class Payios extends Api
         if($product_id != $order_info['bundle_id']){
             Db::rollback();
             filePut($prefix.'验证'.'非法请求,请立刻停止product_id:'.$product_id.'!='.$order_info['bundle_id']);
-            $this->error('非法请求,请立刻停止');
+            $this->error('非法请求,请立刻停止,产品id错误');
         }
 
         if($my_transaction_id != $transaction_id){
             Db::rollback();
             filePut($prefix.'验证'.'非法请求,请立刻停止transaction_id:'.$my_transaction_id.'!='.$transaction_id);
-            $this->error('非法请求,请立刻停止');
+            $this->error('非法请求,请立刻停止,交易id错误');
         }