|
|
@ -88,6 +88,7 @@ class Merchant extends BaseController |
|
|
|
'mini_banner', |
|
|
|
'mini_banner', |
|
|
|
'mer_keyword', |
|
|
|
'mer_keyword', |
|
|
|
'mer_address', |
|
|
|
'mer_address', |
|
|
|
|
|
|
|
'mer_pics', |
|
|
|
'long', |
|
|
|
'long', |
|
|
|
'lat', |
|
|
|
'lat', |
|
|
|
['delivery_way',[2]], |
|
|
|
['delivery_way',[2]], |
|
|
@ -101,6 +102,7 @@ class Merchant extends BaseController |
|
|
|
'mer_certificate' => $data['mer_certificate'] |
|
|
|
'mer_certificate' => $data['mer_certificate'] |
|
|
|
], $this->request->merId()); |
|
|
|
], $this->request->merId()); |
|
|
|
unset($data['mer_certificate']); |
|
|
|
unset($data['mer_certificate']); |
|
|
|
|
|
|
|
$data['mer_pics'] = implode(',', $data['mer_pics']); |
|
|
|
|
|
|
|
|
|
|
|
foreach ($data['delivery_way'] as $datum) { |
|
|
|
foreach ($data['delivery_way'] as $datum) { |
|
|
|
if ($datum == 1) { |
|
|
|
if ($datum == 1) { |
|
|
@ -151,6 +153,7 @@ class Merchant extends BaseController |
|
|
|
$delivery = $repository->get($this->request->merId()) + systemConfig(['tx_map_key']); |
|
|
|
$delivery = $repository->get($this->request->merId()) + systemConfig(['tx_map_key']); |
|
|
|
$data = array_merge($data,$delivery); |
|
|
|
$data = array_merge($data,$delivery); |
|
|
|
$data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1; |
|
|
|
$data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1; |
|
|
|
|
|
|
|
$data['mer_pics'] = explode(',', $data['mer_pics']); |
|
|
|
|
|
|
|
|
|
|
|
$data['assets'] = \app(FinancialRecordRepository::class)->getMerchantStatistics(array('is_mer' => $this->request->merId())); |
|
|
|
$data['assets'] = \app(FinancialRecordRepository::class)->getMerchantStatistics(array('is_mer' => $this->request->merId())); |
|
|
|
// $user = \app(UserRepository::class)->getUserByMerId($this->request->merId()); |
|
|
|
// $user = \app(UserRepository::class)->getUserByMerId($this->request->merId()); |
|
|
|