qrbtf icon indicating copy to clipboard operation
qrbtf copied to clipboard

后端服务支持

Open hellono21 opened this issue 4 years ago • 18 comments

是否能支持后端服务http API接口,如http://qrbtf.com/?data=xxxx&style=??

hellono21 avatar Jun 05 '20 07:06 hellono21

目前定位在一款开源的网页工具,更多的样式、API 服务、图床功能也都在陆续制作中,会在第一时间开放。

ciaochaos avatar Jun 05 '20 08:06 ciaochaos

正在测试了!

试试这个:

http://api.qrbtf.com/qrcode?data=https://qrbtf.com&level=M&style=base&type=round&size=50&opacity=30&posType=planet&otherColor=%23000000&posColor=%23000000

ciaochaos avatar Jun 28 '20 06:06 ciaochaos

不错的项目持续关注

bfrontend avatar Jul 08 '20 05:07 bfrontend

@ciaochaos 生成好像在 browser 里就可以,能否打包成 js package 以供其他项目内使用?

StringKe avatar Jul 09 '20 06:07 StringKe

@StringKe 参考 #8,CPunisher / react-qrbtf

ciaochaos avatar Jul 09 '20 06:07 ciaochaos

正在测试了!

试试这个:

http://api.qrbtf.com/qrcode?data=https://qrbtf.com&level=M&style=base&type=round&size=50&opacity=30&posType=planet&otherColor=%23000000&posColor=%23000000

现在测试的怎么样了啊?非常关注这个迷人的项目。

twuking avatar Jul 31 '20 00:07 twuking

@ciaochaos 请问一下这个参数的配置在哪里看呢

fenglijunnb avatar Sep 10 '20 08:09 fenglijunnb

这个参数的在哪里可以看到呢

fenglijunnb avatar Sep 22 '20 09:09 fenglijunnb

@ciaochaos

fenglijunnb avatar Sep 22 '20 09:09 fenglijunnb

老哥们还需要后端接口实现吗?我做了一个支持所有样式的接口,但是还不完善

luban-7 avatar Mar 12 '24 10:03 luban-7

老哥们还需要后端接口实现吗?我做了一个支持所有样式的接口,但是还不完善

666 可以看看,我最近有点想把这个项目重构了哈哈

ciaochaos avatar Mar 12 '24 22:03 ciaochaos

哈哈,我是通过爬虫的方式曲线救国实现的,对项目重构怕是没有参考价值,期待大佬的原生实现

curl --location --request POST 'https://bot-api.emm233.cn/api/qr' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: bot-api.emm233.cn' \
--header 'Connection: keep-alive' \
--data-raw '{"content":"{\"text\":\"这是二维码内容\",\"style\":4,\"level\":0,\"params\":[\"#000000\",\"#00ff00\"],\"icon\":{\"enabled\":0,\"scale\":\"22\",\"src\":\"\"}}"}'

或者在 链接 输入请求内容体验

{
    "text": "这是内容",
    "style": 7,
    "level": 0,
    "params": [
        1,
        1,
        100,
        1,
        "#ABB8C3",
        "#000000",
        "#000000"
    ],
    "icon": {
        "enabled": 0,
        "scale": "22",
        "src": ""
    }
}

luban-7 avatar Mar 13 '24 01:03 luban-7

通过 https://github.com/stringke/simple-qrbtf 可以直接调度 node 生成,但不支持所有样式。

StringKe avatar Mar 13 '24 01:03 StringKe

老哥们还需要后端接口实现吗?我做了一个支持所有样式的接口,但是还不完善

666 可以看看,我最近有点想把这个项目重构了哈哈

推荐关于 node 后端生成使用类似 https://github.com/Brooooooklyn/canvas 的包,或者纯计算实现。

StringKe avatar Mar 13 '24 01:03 StringKe

老哥们还需要后端接口实现吗?我做了一个支持所有样式的接口,但是还不完善

666 可以看看,我最近有点想把这个项目重构了哈哈

推荐关于 node 后端生成使用类似 https://github.com/Brooooooklyn/canvas 的包,或者纯计算实现。

感谢大佬,不过我是做后端的,node不是很熟练,等我有时间学习一下node再来给项目添砖加瓦,关于爬虫的实现等我整理一下再放出来

luban-7 avatar Mar 13 '24 02:03 luban-7

可以可以,也等等我重构

ciaochaos avatar Mar 13 '24 10:03 ciaochaos

爬虫实现的API接口项目:https://github.com/luban-7/simple-qrbtf

luban-7 avatar Mar 15 '24 12:03 luban-7

能讲下后台AI模型的思路么?是重新训练了,还是直接用 image prompt?

wizzhi avatar Apr 12 '24 10:04 wizzhi