wupengfei %!s(int64=2) %!d(string=hai) anos
pai
achega
e1cc4ef444

+ 1 - 1
application/api/controller/UserCenter.php

@@ -1176,7 +1176,7 @@ class UserCenter extends Base
                 }
                 Db::name('cloud_wallet_withdraw')->insertGetId($data);
                 $risk_item = risk_item($user,'用户提现',$source);
-                $cloud_res =  LianLianPay::cloudWalletWithdrawal($this->uid,$money,$proportion,$user['bank_num'],$cloud_password,$risk_item,$random_key);
+                $cloud_res =  LianLianPay::cloudWalletWithdrawal($this->uid,$money,$proportion,$user['bank_num'],$cloud_password,$risk_item,$random_key,$order_no);
                 if(!in_array($cloud_res['ret_code'],['0000','8888','8889']) )throw new Exception($cloud_res['ret_msg']);
                 Db::commit();
             }catch (\Exception $e) {

+ 2 - 2
application/common/library/LianLianPay.php

@@ -143,7 +143,7 @@ class LianLianPay
      * @return mixed
      */
 
-    public static function cloudWalletWithdrawal($user_id,$money,$fee_amount,$bank_num,$password,$risk_item,$random_key)
+    public static function cloudWalletWithdrawal($user_id,$money,$fee_amount,$bank_num,$password,$risk_item,$random_key,$order_no)
     {
         $user_id = static::$prefix.$user_id;
         //$random_key = static::getRandomKey($user_id);
@@ -158,7 +158,7 @@ class LianLianPay
             'check_flag'=> 'N',
             'pay_time_type'=> 'TRANS_THIS_TIME',
             'orderInfo'=>[
-                'txn_seqno'=>get_order_sn(),
+                'txn_seqno'=>$order_no,
                 'txn_time' => $current,
                 'total_amount' => $money,
                 'fee_amount' => $fee_amount,