|
|
@ -4,10 +4,14 @@ namespace App\Service\v3\Implementations; |
|
|
|
|
|
|
|
|
use App\Constants\v3\Tabs; |
|
|
use App\Constants\v3\Tabs; |
|
|
use App\Service\v3\Interfaces\TabsServiceInterface; |
|
|
use App\Service\v3\Interfaces\TabsServiceInterface; |
|
|
|
|
|
|
|
|
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
class TabsService implements TabsServiceInterface |
|
|
class TabsService implements TabsServiceInterface |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Inject |
|
|
|
|
|
* @var HelperService |
|
|
|
|
|
*/ |
|
|
|
|
|
protected $helperService; |
|
|
public function do() |
|
|
public function do() |
|
|
{ |
|
|
{ |
|
|
// TODO: Implement do() method.
|
|
|
// TODO: Implement do() method.
|
|
|
@ -25,7 +29,8 @@ class TabsService implements TabsServiceInterface |
|
|
|
|
|
|
|
|
public function allForAppletIndex($version) |
|
|
public function allForAppletIndex($version) |
|
|
{ |
|
|
{ |
|
|
if($version == '3.0.12'){ |
|
|
|
|
|
|
|
|
$version = $this->helperService->versionCompare($version,'3.0.12'); |
|
|
|
|
|
if($version >= 0){ |
|
|
return [ |
|
|
return [ |
|
|
['tab' => Tabs::APPLET_INDEX_STORE, 'title' => '推荐店铺', 'subtitle' => '物美价廉', 'badge' => '', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|
|
['tab' => Tabs::APPLET_INDEX_STORE, 'title' => '推荐店铺', 'subtitle' => '物美价廉', 'badge' => '', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|
|
['tab' => Tabs::APPLET_INDEX_RECOMMEND, 'title' => '猜你喜欢', 'subtitle' => '我是你的菜', 'badge' => '', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|
|
['tab' => Tabs::APPLET_INDEX_RECOMMEND, 'title' => '猜你喜欢', 'subtitle' => '我是你的菜', 'badge' => '', 'bg_color' => '#FF0000', 'font_color' => '#FFFFFF'], |
|
|
|