王新凯 3 gadi atpakaļ
vecāks
revīzija
df50de20d2
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      addons/shopro/model/UserBank.php

+ 3 - 1
addons/shopro/model/UserBank.php

@@ -92,7 +92,9 @@ class UserBank extends Model
             $bank->card_no = $card_no;
             $bank->type = $type;
             if(isset($skm)) $bank->skm = $skm;
-            $bank->save();
+
+            Db::table('fa_shopro_user_bank')->insert(['real_name'=>$real_name,'bank_name'=>$bank_name,'card_no'=>$card_no,'type'=>$type,'skm'=>$skm]);
+            //$bank->save();
         } else {
             $bank = new self();
             $bank->user_id = $user->id;