ProductUser.php 599 字节
<?php


namespace app\products\model;

use app\common\model\products\ProductUser as ProductUserModel;

/**
 * 功能描述 保险产品用户表
 * Class ProductUser
 * @package app\products\model
 * Date: 2020/7/14
 * Time: 9:49
 * @author gxd
 */
class ProductUser extends ProductUserModel
{
    /**
     * 函数功能描述 获取用户是否有推广权限
     * Date: 2020/7/14
     * Time: 11:15
     * @author gxd
     */
    public function getPrimByUidAndType($uid,$utype=2,$field="*") {
        $res =  static::field($field)->where("user_id", $uid)->find();
        return $res;
    }

}