|
@@ -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);
|