Commit 15217975 by dosZhang

add company filter

parent 4bbbb4e1
......@@ -170,7 +170,7 @@ function checkInfo() {
if (resp.status == 1) {
level = resp.poster;
username = name;
company = resp.branch;
company = filterCompanyName(resp.branch);
toUploadPage();
$('.upload-page .LOGO').hide()
// $(".username").append('<span class="text">' + username + '</span>');
......@@ -352,6 +352,10 @@ function createPoster() {
}
}
function filterCompanyName(str) {
return str.includes('市') ? str.replace('市', '') : str;
}
function drawVerticalText(ctx, text, color, fontSize, x, y, isBold, letterSpacing) {
ctx.save(); // 保存当前状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment