123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742 |
- <?php
- namespace app\common\model;
- use think\Model;
- class KlRuleConfig extends Model
- {
- // 表名
- protected $table = 'kl_rule_config';
-
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = 'int';
- // 定义时间戳字段名
- protected $createTime = 'createtime';
- protected $updateTime = 'updatetime';
-
- // 追加属性
- protected $append = [
- 's_new_user_status_text',
- 's_new_user_city_status_text',
- 's_new_user_add_status_text',
- 's_new_user_add_op_text',
- 's_new_user_recharge_status_text',
- 's_new_user_recharge_op_text',
- 's_new_relation_text',
- 's_old_user_status_text',
- 's_old_user_city_status_text',
- 's_old_user_active_status_text',
- 's_old_user_active_op_text',
- 's_old_user_recharge_status_text',
- 's_old_user_recharge_op_text',
- 's_old_relation_text',
- 'f_behavior_status_text',
- 'f_one_recharge_status_text',
- 'f_recharge_status_text',
- 'f_read_status_text',
- 'f_read_op_text',
- 'f_kandian_status_text',
- 'f_kandian_op_text',
- 'f_orders_status_text',
- 'f_orders_op_text',
- 'f_behavior_relation_text',
- 'f_register_status_text',
- 'f_register_op_text',
- 'f_register_relation_text',
- 'o_general_status_text',
- 'o_general_new_status_text',
- 'o_general_new_op_text',
- 'o_general_old_status_text',
- 'o_general_old_op_text',
- 'o_general_many_status_text',
- 'o_general_many_op_text',
- 'o_general_relation_text',
- 'o_vip_status_text',
- 'o_vip_new_status_text',
- 'o_vip_new_op_text',
- 'o_vip_old_status_text',
- 'o_vip_old_op_text',
- 'o_vip_many_status_text',
- 'o_vip_many_op_text',
- 'o_vip_relation_text',
- 'o_activity_status_text',
- 'o_activity_new_status_text',
- 'o_activity_new_op_text',
- 'o_activity_old_status_text',
- 'o_activity_old_op_text',
- 'o_activity_many_status_text',
- 'o_activity_many_op_text',
- 'o_activity_relation_text'
- ];
-
-
- public function getSNewUserStatusList()
- {
- return ['0' => __('S_new_user_status 0'),'1' => __('S_new_user_status 1')];
- }
- public function getSNewUserCityStatusList()
- {
- return ['0' => __('S_new_user_city_status 0'),'1' => __('S_new_user_city_status 1')];
- }
- public function getSNewUserAddStatusList()
- {
- return ['0' => __('S_new_user_add_status 0'),'1' => __('S_new_user_add_status 1')];
- }
- public function getSNewUserAddOpList()
- {
- return ['0' => __('S_new_user_add_op 0'),'1' => __('S_new_user_add_op 1')];
- }
- public function getSNewUserRechargeStatusList()
- {
- return ['0' => __('S_new_user_recharge_status 0'),'1' => __('S_new_user_recharge_status 1')];
- }
- public function getSNewUserRechargeOpList()
- {
- return ['0' => __('S_new_user_recharge_op 0'),'1' => __('S_new_user_recharge_op 1')];
- }
- public function getSNewRelationList()
- {
- return ['0' => __('S_new_relation 0'),'1' => __('S_new_relation 1')];
- }
- public function getSOldUserStatusList()
- {
- return ['0' => __('S_old_user_status 0'),'1' => __('S_old_user_status 1')];
- }
- public function getSOldUserCityStatusList()
- {
- return ['0' => __('S_old_user_city_status 0'),'1' => __('S_old_user_city_status 1')];
- }
- public function getSOldUserActiveStatusList()
- {
- return ['0' => __('S_old_user_active_status 0'),'1' => __('S_old_user_active_status 1')];
- }
- public function getSOldUserActiveOpList()
- {
- return ['0' => __('S_old_user_active_op 0'),'1' => __('S_old_user_active_op 1')];
- }
- public function getSOldUserRechargeStatusList()
- {
- return ['0' => __('S_old_user_recharge_status 0'),'1' => __('S_old_user_recharge_status 1')];
- }
- public function getSOldUserRechargeOpList()
- {
- return ['0' => __('S_old_user_recharge_op 0'),'1' => __('S_old_user_recharge_op 1')];
- }
- public function getSOldRelationList()
- {
- return ['0' => __('S_old_relation 0'),'1' => __('S_old_relation 1')];
- }
- public function getFBehaviorStatusList()
- {
- return ['0' => __('F_behavior_status 0'),'1' => __('F_behavior_status 1')];
- }
- public function getFOneRechargeStatusList()
- {
- return ['0' => __('F_one_recharge_status 0'),'1' => __('F_one_recharge_status 1')];
- }
- public function getFRechargeStatusList()
- {
- return ['0' => __('F_recharge_status 0'),'1' => __('F_recharge_status 1')];
- }
- public function getFReadStatusList()
- {
- return ['0' => __('F_read_status 0'),'1' => __('F_read_status 1')];
- }
- public function getFReadOpList()
- {
- return ['0' => __('F_read_op 0'),'1' => __('F_read_op 1')];
- }
- public function getFKandianStatusList()
- {
- return ['0' => __('F_kandian_status 0'),'1' => __('F_kandian_status 1')];
- }
- public function getFKandianOpList()
- {
- return ['0' => __('F_kandian_op 0'),'1' => __('F_kandian_op 1')];
- }
- public function getFOrdersStatusList()
- {
- return ['0' => __('F_orders_status 0'),'1' => __('F_orders_status 1')];
- }
- public function getFOrdersOpList()
- {
- return ['0' => __('F_orders_op 0'),'1' => __('F_orders_op 1')];
- }
- public function getFBehaviorRelationList()
- {
- return ['0' => __('F_behavior_relation 0'),'1' => __('F_behavior_relation 1')];
- }
- public function getFRegisterStatusList()
- {
- return ['0' => __('F_register_status 0'),'1' => __('F_register_status 1')];
- }
- public function getFRegisterOpList()
- {
- return ['0' => __('F_register_op 0'),'1' => __('F_register_op 1')];
- }
- public function getFRegisterRelationList()
- {
- return ['0' => __('F_register_relation 0'),'1' => __('F_register_relation 1')];
- }
- public function getOGeneralStatusList()
- {
- return ['0' => __('O_general_status 0'),'1' => __('O_general_status 1')];
- }
- public function getOGeneralNewStatusList()
- {
- return ['0' => __('O_general_new_status 0'),'1' => __('O_general_new_status 1')];
- }
- public function getOGeneralNewOpList()
- {
- return ['0' => __('O_general_new_op 0'),'1' => __('O_general_new_op 1')];
- }
- public function getOGeneralOldStatusList()
- {
- return ['0' => __('O_general_old_status 0'),'1' => __('O_general_old_status 1')];
- }
- public function getOGeneralOldOpList()
- {
- return ['0' => __('O_general_old_op 0'),'1' => __('O_general_old_op 1')];
- }
- public function getOGeneralManyStatusList()
- {
- return ['0' => __('O_general_many_status 0'),'1' => __('O_general_many_status 1')];
- }
- public function getOGeneralManyOpList()
- {
- return ['0' => __('O_general_many_op 0'),'1' => __('O_general_many_op 1')];
- }
- public function getOGeneralRelationList()
- {
- return ['0' => __('O_general_relation 0'),'1' => __('O_general_relation 1')];
- }
- public function getOVipStatusList()
- {
- return ['0' => __('O_vip_status 0'),'1' => __('O_vip_status 1')];
- }
- public function getOVipNewStatusList()
- {
- return ['0' => __('O_vip_new_status 0'),'1' => __('O_vip_new_status 1')];
- }
- public function getOVipNewOpList()
- {
- return ['0' => __('O_vip_new_op 0'),'1' => __('O_vip_new_op 1')];
- }
- public function getOVipOldStatusList()
- {
- return ['0' => __('O_vip_old_status 0'),'1' => __('O_vip_old_status 1')];
- }
- public function getOVipOldOpList()
- {
- return ['0' => __('O_vip_old_op 0'),'1' => __('O_vip_old_op 1')];
- }
- public function getOVipManyStatusList()
- {
- return ['0' => __('O_vip_many_status 0'),'1' => __('O_vip_many_status 1')];
- }
- public function getOVipManyOpList()
- {
- return ['0' => __('O_vip_many_op 0'),'1' => __('O_vip_many_op 1')];
- }
- public function getOVipRelationList()
- {
- return ['0' => __('O_vip_relation 0'),'1' => __('O_vip_relation 1')];
- }
- public function getOActivityStatusList()
- {
- return ['0' => __('O_activity_status 0'),'1' => __('O_activity_status 1')];
- }
- public function getOActivityNewStatusList()
- {
- return ['0' => __('O_activity_new_status 0'),'1' => __('O_activity_new_status 1')];
- }
- public function getOActivityNewOpList()
- {
- return ['0' => __('O_activity_new_op 0'),'1' => __('O_activity_new_op 1')];
- }
- public function getOActivityOldStatusList()
- {
- return ['0' => __('O_activity_old_status 0'),'1' => __('O_activity_old_status 1')];
- }
- public function getOActivityOldOpList()
- {
- return ['0' => __('O_activity_old_op 0'),'1' => __('O_activity_old_op 1')];
- }
- public function getOActivityManyStatusList()
- {
- return ['0' => __('O_activity_many_status 0'),'1' => __('O_activity_many_status 1')];
- }
- public function getOActivityManyOpList()
- {
- return ['0' => __('O_activity_many_op 0'),'1' => __('O_activity_many_op 1')];
- }
- public function getOActivityRelationList()
- {
- return ['0' => __('O_activity_relation 0'),'1' => __('O_activity_relation 1')];
- }
- public function getSNewUserStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_user_status'];
- $list = $this->getSNewUserStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSNewUserCityStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_user_city_status'];
- $list = $this->getSNewUserCityStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSNewUserAddStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_user_add_status'];
- $list = $this->getSNewUserAddStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSNewUserAddOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_user_add_op'];
- $list = $this->getSNewUserAddOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSNewUserRechargeStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_user_recharge_status'];
- $list = $this->getSNewUserRechargeStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSNewUserRechargeOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_user_recharge_op'];
- $list = $this->getSNewUserRechargeOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSNewRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_new_relation'];
- $list = $this->getSNewRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldUserStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_user_status'];
- $list = $this->getSOldUserStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldUserCityStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_user_city_status'];
- $list = $this->getSOldUserCityStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldUserActiveStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_user_active_status'];
- $list = $this->getSOldUserActiveStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldUserActiveOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_user_active_op'];
- $list = $this->getSOldUserActiveOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldUserRechargeStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_user_recharge_status'];
- $list = $this->getSOldUserRechargeStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldUserRechargeOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_user_recharge_op'];
- $list = $this->getSOldUserRechargeOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getSOldRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['s_old_relation'];
- $list = $this->getSOldRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFBehaviorStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_behavior_status'];
- $list = $this->getFBehaviorStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFOneRechargeStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_one_recharge_status'];
- $list = $this->getFOneRechargeStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFRechargeStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_recharge_status'];
- $list = $this->getFRechargeStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFReadStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_read_status'];
- $list = $this->getFReadStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFReadOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_read_op'];
- $list = $this->getFReadOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFKandianStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_kandian_status'];
- $list = $this->getFKandianStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFKandianOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_kandian_op'];
- $list = $this->getFKandianOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFOrdersStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_orders_status'];
- $list = $this->getFOrdersStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFOrdersOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_orders_op'];
- $list = $this->getFOrdersOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFBehaviorRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_behavior_relation'];
- $list = $this->getFBehaviorRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFRegisterStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_register_status'];
- $list = $this->getFRegisterStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFRegisterOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_register_op'];
- $list = $this->getFRegisterOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getFRegisterRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['f_register_relation'];
- $list = $this->getFRegisterRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_status'];
- $list = $this->getOGeneralStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralNewStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_new_status'];
- $list = $this->getOGeneralNewStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralNewOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_new_op'];
- $list = $this->getOGeneralNewOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralOldStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_old_status'];
- $list = $this->getOGeneralOldStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralOldOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_old_op'];
- $list = $this->getOGeneralOldOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralManyStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_many_status'];
- $list = $this->getOGeneralManyStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralManyOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_many_op'];
- $list = $this->getOGeneralManyOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOGeneralRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_general_relation'];
- $list = $this->getOGeneralRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_status'];
- $list = $this->getOVipStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipNewStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_new_status'];
- $list = $this->getOVipNewStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipNewOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_new_op'];
- $list = $this->getOVipNewOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipOldStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_old_status'];
- $list = $this->getOVipOldStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipOldOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_old_op'];
- $list = $this->getOVipOldOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipManyStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_many_status'];
- $list = $this->getOVipManyStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipManyOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_many_op'];
- $list = $this->getOVipManyOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOVipRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_vip_relation'];
- $list = $this->getOVipRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_status'];
- $list = $this->getOActivityStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityNewStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_new_status'];
- $list = $this->getOActivityNewStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityNewOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_new_op'];
- $list = $this->getOActivityNewOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityOldStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_old_status'];
- $list = $this->getOActivityOldStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityOldOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_old_op'];
- $list = $this->getOActivityOldOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityManyStatusTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_many_status'];
- $list = $this->getOActivityManyStatusList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityManyOpTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_many_op'];
- $list = $this->getOActivityManyOpList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- public function getOActivityRelationTextAttr($value, $data)
- {
- $value = $value ? $value : $data['o_activity_relation'];
- $list = $this->getOActivityRelationList();
- return isset($list[$value]) ? $list[$value] : '';
- }
- }
|