瀏覽代碼

编辑商户

zhangchangchun 5 年之前
父節點
當前提交
3e0ae360d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);