智简魔方文档

获取商品全局设置

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\ConfigurationModel::productGlobalSetting
所属业务商品管理
来源模块/系统用户模型

功能说明

获取商品全局设置

调用示例

$result = (new \app\common\model\ConfigurationModel())->productGlobalSetting();

参数

该函数/方法无需传入参数。

返回值

返回项类型说明
self_defined_field_apply_rangeint自定义字段应用范围(0=无1=商品分组新增商品)
custom_host_name_apply_rangeint自定义标识应用范围(0=无1=商品分组新增商品)
product_duration_group_presets_openint是否开启商品周期分组预设
product_duration_group_presets_apply_rangeint商品周期分组预设应用范围(0全局默认,1接口新增商品)
product_duration_group_presets_default_idint商品周期分组预设全局默认分组ID
product_new_host_renew_with_ratio_openint新产品续费按周期比例折算(0关闭,1开启)
product_new_host_renew_with_ratio_apply_rangeint新产品续费按周期比例折算范围(2商品分组下新产品,1接口下新产品,0全部新产品)
product_new_host_renew_with_ratio_apply_range_2array二级分组id,逗号分隔
product_new_host_renew_with_ratio_apply_range_1array接口id,逗号分隔
product_global_renew_ruleint商品到期日计算规则(0实际到期日,1产品到期日)
product_global_show_base_infoint基础信息展示(0关闭,1开启)
product_renew_with_new_openint商品续费时重新计算续费金额(0关闭,1开启)
product_renew_with_new_product_idsarray所选商品ID
product_overdue_not_delete_openint商品到期后不自动删除(0关闭,1开启)
product_overdue_not_delete_product_idsarray到期后不自动删除的商品ID
host_sync_due_time_openint产品到期时间与上游一致(0关闭,1开启)
host_sync_due_time_apply_rangeint产品到期时间与上游一致应用范围(0全部上游商品,1自定义上游商品)
host_sync_due_time_product_idsarray产品到期时间与上游一致的商品ID
auto_renew_in_advanceint自动续费提前开关(0=关闭1=开启)
auto_renew_in_advance_numint自动续费提前时间数
auto_renew_in_advance_unitstring自动续费提前时间单位(minute=分钟,hour=小时,day=天)

正常返回

{
  "self_defined_field_apply_range": 1,
  "custom_host_name_apply_range": 1,
  "product_duration_group_presets_open": 1,
  "product_duration_group_presets_apply_range": 1,
  "product_duration_group_presets_default_id": 1,
  "product_new_host_renew_with_ratio_open": 1,
  "product_new_host_renew_with_ratio_apply_range": 1,
  "product_new_host_renew_with_ratio_apply_range_2": [
    "string"
  ],
  "product_new_host_renew_with_ratio_apply_range_1": [
    "string"
  ],
  "product_global_renew_rule": 1,
  "product_global_show_base_info": 1,
  "product_renew_with_new_open": 1,
  "product_renew_with_new_product_ids": [
    1
  ],
  "product_overdue_not_delete_open": 1,
  "product_overdue_not_delete_product_ids": [
    1
  ],
  "host_sync_due_time_open": 1752984000,
  "host_sync_due_time_apply_range": 1752984000,
  "host_sync_due_time_product_ids": [
    1752984000
  ],
  "auto_renew_in_advance": 1,
  "auto_renew_in_advance_num": 1,
  "auto_renew_in_advance_unit": "string"
}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。