Commit 15217975 by dosZhang

add company filter

parent 4bbbb4e1
...@@ -170,7 +170,7 @@ function checkInfo() { ...@@ -170,7 +170,7 @@ function checkInfo() {
if (resp.status == 1) { if (resp.status == 1) {
level = resp.poster; level = resp.poster;
username = name; username = name;
company = resp.branch; company = filterCompanyName(resp.branch);
toUploadPage(); toUploadPage();
$('.upload-page .LOGO').hide() $('.upload-page .LOGO').hide()
// $(".username").append('<span class="text">' + username + '</span>'); // $(".username").append('<span class="text">' + username + '</span>');
...@@ -352,6 +352,10 @@ function createPoster() { ...@@ -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) { function drawVerticalText(ctx, text, color, fontSize, x, y, isBold, letterSpacing) {
ctx.save(); // 保存当前状态 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