zhangchangchun %!s(int64=5) %!d(string=hai) anos
pai
achega
3e0ae360d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Repositories/ShopRepository.php

+ 1 - 1
app/Repositories/ShopRepository.php

@@ -72,7 +72,7 @@ class ShopRepository {
         try{
             $shop = Shop::where(['shop_id'=>$shop_id])->update($data);
             $accountData = [];
-            if(isset($account) && isset($password)){
+            if(!empty($account) && !empty($password)){
                 $accountData['shop_id'] = $shop_id;
                 $accountData['account'] = $account;
                 $accountData['password'] = Hash::make($password);