appCodeUnlimit($res->id, $page, 280); if ($resCode) { if ($res) return ['res' => $resCode, 'id' => $res->id]; else return false; } else return false; } /** * TODO 获取小程序页面带参数二维码不保存数据库 * @param string $page * @param string $pramam * @param int $width * @return mixed */ public static function getPageCode($page = '', $pramam = "", $width = 280) { return MiniProgramService::qrcodeService()->appCodeUnlimit($pramam, $page, $width); } }