|
|
|
@ -288,6 +288,7 @@ class Merchant_WeliamController { |
|
|
|
$member['id'] = $_GPC['storemid']; |
|
|
|
} |
|
|
|
$register = $_GPC['register']; |
|
|
|
$entData = $_GPC['ent_data']; |
|
|
|
if(empty($register['groupid']) && !is_store()){ |
|
|
|
wl_message('请设置商户所属套餐'); |
|
|
|
} |
|
|
|
@ -308,9 +309,6 @@ class Merchant_WeliamController { |
|
|
|
$register['album'] = serialize($register['album']); |
|
|
|
$register['tag'] = serialize($register['tag']); |
|
|
|
$register['storename'] = trim($register['storename']); |
|
|
|
$cc_id = $register['cc_id']; |
|
|
|
$recommend = $register['recommend']; |
|
|
|
unset($register['cc_id'],$register['recommend']); |
|
|
|
if (!empty($register['endtime'])) { |
|
|
|
$register['endtime'] = strtotime($register['endtime']); |
|
|
|
} |
|
|
|
@ -424,7 +422,7 @@ class Merchant_WeliamController { |
|
|
|
if ($noticeflag) { |
|
|
|
Member::returnIdentity($oldMid); |
|
|
|
} |
|
|
|
MerchantDataEnt::saveData(['cc_id' => $cc_id,'recommend' => $recommend],$id); |
|
|
|
MerchantDataEnt::saveData($entData,$id); |
|
|
|
if ($result) { |
|
|
|
if (!empty($id)) { |
|
|
|
//处理分类 |
|
|
|
@ -527,13 +525,14 @@ class Merchant_WeliamController { |
|
|
|
} |
|
|
|
# 企业分类 |
|
|
|
$category = Category::getChildCategoryAll(8,'*',true); |
|
|
|
$register['cc_id'] = 0; |
|
|
|
$register['recommend'] = 0; |
|
|
|
$entData = ['cc_id' => 0, 'recommend' => 0, 'business' => '', 'advantage' => '']; |
|
|
|
if ($id) { |
|
|
|
$merchantDataEnt = MerchantDataEnt::getStoreEntData($id); |
|
|
|
if ($merchantDataEnt) { |
|
|
|
$register['cc_id'] = $merchantDataEnt['cc_id']; |
|
|
|
$register['recommend'] = $merchantDataEnt['recommend']; |
|
|
|
$entData['cc_id'] = $merchantDataEnt['cc_id']; |
|
|
|
$entData['recommend'] = $merchantDataEnt['recommend']; |
|
|
|
$entData['business'] = $merchantDataEnt['business']; |
|
|
|
$entData['advantage'] = $merchantDataEnt['advantage']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|