初始上传
This commit is contained in:
36
addon/cardservice/event/ServiceGoodsClass.php
Executable file
36
addon/cardservice/event/ServiceGoodsClass.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
|
||||
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace addon\cardservice\event;
|
||||
|
||||
use addon\cardservice\model\ServiceGoods;
|
||||
|
||||
/**
|
||||
*/
|
||||
class ServiceGoodsClass
|
||||
{
|
||||
|
||||
/**
|
||||
* 活动展示
|
||||
* @return array
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
return [
|
||||
'goods_class' => (new ServiceGoods())->getGoodsClass()['id'],
|
||||
'goods_class_name' => (new ServiceGoods())->getGoodsClass()['name'],
|
||||
'is_virtual' => 1,
|
||||
'add_url' => 'cardservice://shop/service/addGoods',
|
||||
'edit_url' => 'cardservice://shop/service/editGoods'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user