init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)

这个提交包含在:
Developer
2026-10-30 10:18:50 +08:00
当前提交 1f3e0ce2f6
共有 9291 个文件被更改,包括 1776674 次插入 和 0 次删除

查看文件

@@ -0,0 +1,36 @@
<?php
namespace Common\Model;
use Think\Model;
//[1.7.19]
class VipIntegralModel extends BaseModel
{
protected $tableName = 'retail_vip_integral';
protected $fields = array(
'id', //int(11) NOT NULL AUTO_INCREMENT,
'min_integral', //int(11) NOT NULL COMMENT '当前会员等级最小所需积分',
'merchantid', //int(11) NOT NULL COMMENT '商户id',
'grade', //int(11) NOT NULL COMMENT '当前积分段的等级',
'addtime', //int(11) NOT NULL COMMENT '添加时间',
'gradeimgurl', //varchar(255) NOT NULL COMMENT '等级图片路径',
'discount', //float(3,2) NOT NULL DEFAULT '1.00' COMMENT '折扣,0-1之间,越大享受折扣越小',
'cardname', //varchar(20) NOT NULL COMMENT '会员卡名称',
'max', //int(11) NOT NULL DEFAULT '0' COMMENT '最大优惠金额',
'gradeimgurl_id', //varchar(255) DEFAULT '0',
);
/**
* 获取一条
* @param $map
* @param string $order
* @param string $field
* @return mixed
*/
public function getFindGrade($map, $order = 'min_integral desc', $field = '*')
{
$res = $this->field($field)->where($map)->order($order)->find();
return $res;
}
}