💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` $set = $this -> getPluginset('commission'); $leveltype = intval($set['leveltype']); ``` ``` if($leveltype==12){ $tmcount = $agentuser["tmcount"]; $ztcount = pdo_fetchcolumn("SELECT count(id) FROM " . tablename('ewei_shop_member') . " WHERE uniacid=:uniacid and agentid=:agentid and agentlevel=:agentlevel and status=1 and isagent=1 limit 1", array(':uniacid' => $_W['uniacid'], ':agentid' => $agentuser["id"], ':agentlevel' => $levelid)); if($levelid<4){ $newid = $levelid+1; $newlevel = pdo_fetch("select id from " . tablename("ewei_shop_commission_level") . " where id=:id and " . $ztcount . " >= downcount and " . $tmcount . " >= tmdowncount and downcount>0 limit 1", array( ":id" => $newid )); if( !empty($newlevel) ) { pdo_update("ewei_shop_member", array( "agentlevel" => $newlevel["id"]), array( "id" => $agentuser["id"] )); } } } ```