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

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

@@ -182,6 +182,11 @@ class Orders extends Model
             return false;
         }
         $order['payment_id']=$payment['id'];
+        #代付
+        if($order['user_id']!=$payment->user_id){
+
+        }
+        $order->save();
         $order->makePay($payment['pay_type']);
         return true;
     }

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

@@ -7,6 +7,7 @@ use think\Log;
 use think\Model;
 /**
  * @property int pay_type
+ * @property int user_id
  * @property string order_no
  */
 class Payment extends Model