rabin 5 years ago
parent
commit
227b2ccf21
1 changed files with 9 additions and 0 deletions
  1. 9 0
      app/act/src/Order.php

+ 9 - 0
app/act/src/Order.php

@@ -314,8 +314,10 @@ class Order extends Core
             $param['other'] = $receipt;
         }
 
+        
         $this->data['pay'] = Dever::load('pay/api.' . $method, $param);
 
+        /*
         if ($order_data['system'] == 1) {
             if (isset($this->data['pay']['prepay_id'])) {
                 Dever::load('act/lib/form')->submit($this->data['uid'], $this->data['pay']['prepay_id'], 2, $journal['cate_id']);
@@ -323,10 +325,17 @@ class Order extends Core
                 Dever::alert('支付失败');
             }
         }
+        */
 
         $this->data['order_id'] = $order_id;
         //$this->data['order_id'] = $id;
 
+        # 直接支付成功
+        $send['pay_order_id'] = $order_id;
+        $send['pay_status'] = 2;
+        $send['pay_msg'] = 'yes';
+        Dever::load('act/lib/pay')->act_action($send);
+
         return $this->data;
     }