wupengfei il y a 3 ans
Parent
commit
55641f049b
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. 1 5
      addons/shopro/model/UserBank.php

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

@@ -101,11 +101,7 @@ class UserBank extends Model
             $bank->card_no = $card_no;
             $bank->type = $type;
             if(isset($skm)) $bank->skm = $skm;
-
-            dump($type);die();
-
-            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();
+            $bank->save();
         } else {
             $bank = new self();
             $bank->user_id = $user->id;