修改本地生活菜单
This commit is contained in:
parent
0fcc940d93
commit
665af9e703
@ -5,6 +5,7 @@ namespace app\api\controller;
|
||||
use app\api\logic\DistributionLogic;
|
||||
use app\api\logic\IndexLogic;
|
||||
use app\common\basics\Api;
|
||||
use app\common\enum\MenuEnum;
|
||||
use app\common\logic\ChatLogic;
|
||||
use app\common\logic\RegionLogic;
|
||||
use app\common\model\MenuDecorate;
|
||||
@ -199,7 +200,7 @@ class Index extends Api
|
||||
{
|
||||
$local = Db::name("local_store")->where("user_id", $this->user_id)->where("is_delete", 0)->select()->toArray();
|
||||
$list = MenuDecorate::where(['decorate_type' => 3, 'del' => 0, 'is_show' => 1])
|
||||
->field('name,image,link_type,link_address, link')
|
||||
->field('name,image,link_type,link_address')
|
||||
->order('sort desc')
|
||||
->select()
|
||||
->toArray();
|
||||
@ -218,6 +219,11 @@ class Index extends Api
|
||||
|
||||
$data = array();
|
||||
if ($list) {
|
||||
foreach ($list as $v) {
|
||||
$menu_content = MenuEnum::getMenu('local', $v['link_address']);
|
||||
$v['link'] = $menu_content['link'];
|
||||
}
|
||||
|
||||
$data = array_merge($company, $list);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user