init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace ShopCoupon\Model;
|
||||
|
||||
use Common\Model\BaseModel;
|
||||
|
||||
class ShopCouponModel extends BaseModel
|
||||
{
|
||||
protected $tableName = 'shop_coupon';
|
||||
protected $fields = [
|
||||
'id',
|
||||
'merchant_id',
|
||||
'app_id', //创券的appid
|
||||
'stock_name', //名称
|
||||
'comment', //备注
|
||||
'belong_merchant', //批次归属商户号
|
||||
'goods_name', //适用范围
|
||||
'stock_type', //批次类型 1为NORMAL固定面额满减券,2为DISCOUNT折扣券使用规则,3为EXCHANGE换购券使用规则
|
||||
'available_begin_time', //开始时间
|
||||
'available_end_time', //结束时间
|
||||
'coupon_use_rule', //核销规则
|
||||
'stock_send_rule', //发放规则
|
||||
'out_request_no', //商户请求单号
|
||||
'custom_entrance', //自定义入口
|
||||
'display_pattern_info', //样式信息
|
||||
'coupon_code_mode', //券code模式券code模式WECHATPAY_MODE:系统分配券code。(固定22位纯数字)MERCHANT_API:商户发放时接口指定券code。MERCHANT_UPLOAD:商户上传自定义code,发券时系统随机选取上传的券code
|
||||
'notify_config', //事件通知配置
|
||||
'valid_time_type', //1 无规律的有效时间段 2固定周期有效时间段
|
||||
'status', //1正常 2删除
|
||||
'stock_id', //创建成功后的批次号
|
||||
'create_time', //创建时间
|
||||
'type', //创建方式1小程序 2公众号
|
||||
'suspend_status', //1允许发放 2暂停发放
|
||||
'user_type', //1普通支付模式 2服务商支付模式
|
||||
'operator_id', //操作人id
|
||||
'store_id_gather', //使用的门店
|
||||
'store_type', //1所有门店 2指定门店
|
||||
'goods_type', //所以商品 2指定商品
|
||||
'goods_id_gather', //商品id集合
|
||||
'goods_list', //商品信息
|
||||
'available_type', //可用场景1线上 2线下
|
||||
'coupon_num', //总优惠券张
|
||||
'operation_num', //剩余数量
|
||||
];
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户