Skip to content

Commit

Permalink
# 2.18.0
Browse files Browse the repository at this point in the history
- 素材整理
- 增加`api/user/info`接口,方便提供集成示例
-
  • Loading branch information
thomas committed Jan 31, 2024
1 parent a442210 commit 12576b7
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img alt="csharp" src="https://img.shields.io/badge/language-python-yellow.svg">
<img alt="csharp" src="https://img.shields.io/badge/language-vue-brightgreen.svg">
<img alt="license" src="https://img.shields.io/badge/license-MIT-blue.svg">
<img alt="version" src="https://img.shields.io/badge/version-2.17.1-brightgreen">
<img alt="version" src="https://img.shields.io/badge/version-2.18.0-brightgreen">
</p>

## Introduction
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<img alt="csharp" src="https://img.shields.io/badge/language-python-yellow.svg">
<img alt="csharp" src="https://img.shields.io/badge/language-vue-brightgreen.svg">
<img alt="license" src="https://img.shields.io/badge/license-MIT-blue.svg">
<img alt="version" src="https://img.shields.io/badge/version-2.17.1-brightgreen">
<img alt="version" src="https://img.shields.io/badge/version-2.18.0-brightgreen">
</p>

## 介绍

fastposter海报生成器是一款快速开发海报的工具。只需上传一张背景图,在对应的位置放上组件(`文字``图片``二维码``头像`)即可生成海报。 点击`代码`直接生成各种语言SDK的调用代码,方便快速开发。

现已服务众多电商类项⽬,多个项⽬有`60W+`⽤户,通过多年⽣产环境的考验,稳定可靠。广泛应用于各类电商、分销系统、电商海报、电商主图等海报生成和制作场景。
现已服务众多电商类项⽬,多个项⽬有`70W+`⽤户,通过多年⽣产环境的考验,稳定可靠。广泛应用于各类电商、分销系统、电商海报、电商主图等海报生成和制作场景。

> 如果项目有帮到您,请点亮你点亮的小星星
Expand Down
Binary file modified server/data/db/poster.sqlite
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 9 additions & 2 deletions server/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def set_default_headers(self) -> None:
origin_url = self.request.headers.get('Origin')
if not origin_url: origin_url = '*'
self.set_header('Access-Control-Allow-Methods', 'POST, PUT, DELETE, GET, OPTIONS')
self.set_header('fastposter', 'fastposter/v2.17.1')
self.set_header('fastposter', 'fastposter/v2.18.0')
self.set_header('Access-Control-Allow-Credentials', 'true')
self.set_header('Access-Control-Allow-Origin', origin_url)
self.set_header('Access-Control-Allow-Headers', 'x-requested-with,token,Content-type,Client-Type,Client-Version')
Expand Down Expand Up @@ -67,6 +67,12 @@ def post(self):
self.json(R.error('token not match!'))


class ApiUserInfoHandler(BaseAuthHandler):

def get(self):
self.json(R.ok().add('user', {"id":2,"username":"user1","type":1,"status":1}))


class ApiPostersHandler(BaseAuthHandler):

def get(self, id):
Expand Down Expand Up @@ -186,6 +192,7 @@ def make_app(p):
}
print('p', p)
return Application([
(f"{p}api/user/info", ApiUserInfoHandler),
(f"{p}api/login", ApiLoginHandler),
(f"{p}api/user/posters", ApiUserPostersHandler),
(f"{p}api/user/posters/copy/(.+)", ApiUserPostersCopyHandler),
Expand Down Expand Up @@ -213,7 +220,7 @@ def make_app(p):
|_| \__,_||___/ \__|| .__/ \___/ |___/ \__| \___||_|
| |
|_|
fastposter(v2.17.1)
fastposter(v2.18.0)
https://fastposter.net/doc/
'''
PORT = 5000
Expand Down
2 changes: 1 addition & 1 deletion server/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=static/font/iconfont.css><title>fastposter海报生成器</title><meta name=keywords content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 低代码海报生成器 在线作图 Java生成二维码分享海报图片 海报生成器在线制作 在线海报生成器 免费海报一键生成器 海报在线生成 Poster在线制作"><meta name=description content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 fastposter低代码海报生成器 Java Graphics2D绘制海报图片 通过JSON生成海报图片 程序员的海报设计器 一款程序员的海报生成器 python生成海报 java生成海报 免费海报一键生成器"><script>var _hmt = _hmt || [];(function () {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?666f29845ed43fbcd0282a91cb281b83";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script><script>var baseURI = "/";if (baseURI === '/') {baseURI = (location.protocol + '//' + location.host + location.pathname).replace(/(.+\/).*$/, '$1')}; window.API_URL = baseURI; window.PREVIEW_URL = baseURI + 'api/preview'; window.UPLOAD_URL = baseURI + 'api/upload';console.info('fastposter(2.17.1): 震撼来袭...')</script><link href=js/about.eb687494.js rel=prefetch><link href=css/app.742ff3ff.css rel=preload as=style><link href=css/chunk-vendors.87d3b6c6.css rel=preload as=style><link href=js/app.a45846f9.js rel=preload as=script><link href=js/chunk-vendors.d3f19a59.js rel=preload as=script><link href=css/chunk-vendors.87d3b6c6.css rel=stylesheet><link href=css/app.742ff3ff.css rel=stylesheet></head><body><noscript><strong>请开启JS支持</strong></noscript><div id=app></div><script src=js/chunk-vendors.d3f19a59.js></script><script src=js/app.a45846f9.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=static/font/iconfont.css><title>fastposter海报生成器</title><meta name=keywords content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 低代码海报生成器 在线作图 Java生成二维码分享海报图片 海报生成器在线制作 在线海报生成器 免费海报一键生成器 海报在线生成 Poster在线制作"><meta name=description content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 fastposter低代码海报生成器 Java Graphics2D绘制海报图片 通过JSON生成海报图片 程序员的海报设计器 一款程序员的海报生成器 python生成海报 java生成海报 免费海报一键生成器"><script>var _hmt = _hmt || [];(function () {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?666f29845ed43fbcd0282a91cb281b83";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script><script>var baseURI = "/";if (baseURI === '/') {baseURI = (location.protocol + '//' + location.host + location.pathname).replace(/(.+\/).*$/, '$1')}; window.API_URL = baseURI; window.PREVIEW_URL = baseURI + 'api/preview'; window.UPLOAD_URL = baseURI + 'api/upload';console.info('fastposter(2.18.0): 震撼来袭...')</script><link href=js/about.eb687494.js rel=prefetch><link href=css/app.742ff3ff.css rel=preload as=style><link href=css/chunk-vendors.87d3b6c6.css rel=preload as=style><link href=js/app.a45846f9.js rel=preload as=script><link href=js/chunk-vendors.d3f19a59.js rel=preload as=script><link href=css/chunk-vendors.87d3b6c6.css rel=stylesheet><link href=css/app.742ff3ff.css rel=stylesheet></head><body><noscript><strong>请开启JS支持</strong></noscript><div id=app></div><script src=js/chunk-vendors.d3f19a59.js></script><script src=js/app.a45846f9.js></script></body></html>

0 comments on commit 12576b7

Please sign in to comment.