xieruidong 2 years ago
parent
commit
f5745e7403
2 changed files with 1 additions and 5 deletions
  1. 0 2
      application/common/model/Orders.php
  2. 1 3
      application/common/model/Payment.php

+ 0 - 2
application/common/model/Orders.php

@@ -122,8 +122,6 @@ class Orders extends Model
             $user,
             $pay_type,
             $this['amount_pay'],
-            self::class,
-            'whenPaySuccess',
             $this['id'],
             "订单【{$this['order_no']}】付款",
             $this->getTable(),

+ 1 - 3
application/common/model/Payment.php

@@ -16,11 +16,9 @@ class Payment extends Model
         'params'=>'json',
     ];
 
-    public static function pay(User $user,$pay_type,$amount,$class,$func,$payment_id,$body="订单付款",$payment_type=''){
+    public static function pay(User $user,$pay_type,$amount,$payment_id,$body="订单付款",$payment_type=''){
         $payment=self::create([
             'pay_type'=>$pay_type,
-            'class'=>$class,
-            'method'=>$func,
             'order_no'=>order_no(),
             'amount'=>$amount,
             'user_id'=>$user['id'],