GithubHelp home page GithubHelp logo

ksust / http--api Goto Github PK

View Code? Open in Web Editor NEW
96.0 6.0 19.0 13.26 MB

扩展你的QQ/微信机器人用途,提供跨框架平台的PHP/Java/Python/NodeJS等编程语言SDK。

Home Page: http://work.ksust.com

PHP 100.00%

http--api's Issues

WEB管理平台无法登陆

注册返回后,登陆提示
同步登陆失败
:(
用户名不存在或已被拉黑!

页面自动 跳转 等待时间:

有些事件失效了

212事件提交的是空白数据,215事件从来没看到过,有一个没标出来的219事件,邀请入群时出现的,提交的信息也是空白!望修复!

我写了个flask的demo,想提交到demo库中

from flask import Flask, request, make_response
from httpapi.HTTPSDK import *

# 配置路由,在插件提交返回中配置地址(如本例 http://127.0.0.1:5000)
# Create your views here.

app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def index():
    req = request.get_data()
    sdk = HTTPSDK.httpGet(req)
    print(sdk.getMsg())

    sdk.sendPrivdteMsg(sdk.getMsg().QQ, '你发送了这样的消息:' + sdk.getMsg().Msg)
    sdk.getLoginQQ()

    # 回调演示,提交返回获取群列表、登录QQ等
    if sdk.isCallback() and sdk.getMsg().Type == HTTPSDK.TYPE_GET_LOGIN_QQ:
        print('Login QQ:' + str(sdk.getLoginQQ()))

    return make_response(sdk.toJsonString())


if __name__ == '__main__':
    app.run()

增加查赞数量函数

下次更新可以考虑加上这个
And加上 申请加群 这个
在ir易模块中是调用dll查询的

一个小小的建议

不能加上上层抽象吗。
比如

import http.api.qybot
import http.api.qybotHandler
class Handler(qybotHandler):
  def init(self):
  pass
  
  def onPrivateMsg(self,msgObject):
  pass

qybot.setHandlerClass(Handler)

使用建议

  1. 文档上有一个219事件没写出来。
    219事件代表的是 邀请入群不需要管理员同意,直接入群的事件。
    215 是 邀请入群,对方已同意,管理员未同意的事件。

  2. 建议当PHP返回的消息为空时,插件不要显示解析失败。这让小白总以为自己炸了

  3. 增加一个取QQ消息中的图片的链接。

  4. 禁言这种操作能不能直接用“提交功能”,解析php返回的信息操作。"推送功能"这种操作很多人玩不来。

  5. 啥时候可以通过推送发送json和xml

关于发送图片,图片链接为外网链接

当使用[ksust,image:pic=图片地址]发送图片时,由于链接为外网链接,导致无法获取图片而报错ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
是否能够自己设置代理,或能否发送本地图片?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.