Ver código fonte

编辑商户

zhangchangchun 5 anos atrás
pai
commit
3e0ae360d8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Repositories/ShopRepository.php

+ 1 - 1
app/Repositories/ShopRepository.php

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