Evento 易语言web服务框架 微信小程序 微信支付 微信JSAPI调用

Evento是一个易语言的Web服务框架,旨在简化B/S应用程序开发。它基于高并发TCP网络架构,封装HTTP协议,允许用户通过DLL动态库创建应用。框架支持微信JSAPI,适用于微信小程序商城的开发,单机并发能力可达40000。提供EVE独立服务器应用程序和IIS版应用,包含示例源码和DLL应用,开发者需要遵循多线程编程规范,注意DLL更新时需停止服务。
摘要由CSDN通过智能技术生成

Evento 易语言web服务框架使用说明

前言:
为什么要有这个东西,C/S构架在十多年前就已经开始向主流的B/S构架转型,其中在易语言WEB应用也不泛优秀的例程和应用。官方出了针对IIS开发的ISAPI开发支持库,其例程少和应用难度大使其无法规模化应用。
很早之前大鸟出了ESP,其目的就是为了打造易语言B/S应用程序开发,ESP应用是在IIS环境下的ISAPI应用,需要进行模块映射。其完整性都非常不错,但其有两个问题,其对核心库进行了HOOK,但无法try和catch到异常,同时由于每次动态库都进行装载和释放,导致了其应用速度和并发环境下不稳定。
后来有了光速模块,非常优异的网络通讯框架,封装了TCP、HTTP、TGS(自定义协议)等功能,易通(EVENTO 后面简称EVE)在参考了大鸟的ESP和光速模块的支持下,进行了EVE的开发,并尝试在商业应用上使用。在经过1年的开发与实践后,其单机并发理想环境下已高达40000,并根据现在主流的微信开发,完成了微信JSAPI功能的封装,并以插件形式免费提供给易通用户,助力易语言WEB应用开发。

EVENTO 易语言WEB服务器版本 微信小程序商城 开源了,全部源码群文件中下载
EVE易通技术交流群:801065583
EVE易通技术交流群:801065583
EVE易通技术交流群:801065583
EVE易通技术交流群:801065583
EVE易通技术交流群:801065583<

public class Inventory { static Vector<Goods> goods = new Vector<>(); static Vector<EventO> eventO = new Vector<>(); static Vector<EventR> eventR = new Vector<>(); static Vector<EventD> eventD = new Vector<>(); static Vector<EventA> eventA = new Vector<>(); static Vector<Event> v_shipping = new Vector<>(); static Vector<Event> v_errors = new Vector<>(); public static void main(String[] args) { try { get_Inventory(); //读取库存记录 get_Transactions(); } catch (IOException e) { e.printStackTrace(); //读取事件 } EventA_Handle(); //处理A事件 EventR_Handle(); //处理R事件 EventO_Handle(); //处理O事件 EventD_Handle(); //处理D事件 File_Handle(); //生成shipping、Errors、NewInventory文件 } /** * @description 读取库存记录,存入vector中 */ static void get_Inventory() throws IOException { BufferedReader in = new BufferedReader(new FileReader("src/Inventory.txt")); String line; while((line = in.readLine())!=null) { //按行读取文件 String[] str2 = line.split("\\s+"); //分解字符串 Goods goods_temp = new Goods(str2[0], Integer.parseInt(str2[1]), str2[2], str2[3]); goods.addElement(goods_temp); } in.close(); } /** * @description 读取库存记录,存入vector中 */ static void get_Transactions() throws IOException { //读取事件 BufferedReader in = new BufferedReader(new FileReader("src/Transactions.txt")); String line; while((line = in.readLine())!=null) { //按行读取文件 String[] str2 = line.split("\\s+"); //分解字符串 if (str2[0].equals("O")) { //读取O事件 EventO event_temp = new EventO(str2[1], Integer.parseInt(str2[2]), str2[3]); eventO.addElement(event_temp); } else if (str2[0].equals("R")) { //读取R事件 EventR event_temp = new EventR(str2[1], Integer.parseInt(str2[2])); eventR.addElement(event_temp); } else if (str2[0].equals("D")) { //读取D事件 EventD event_temp = new EventD(str2[1]); eventD.addElement(event_temp); } else if (str2[0].equals("A")) { //读取A事件 EventA event_temp = new EventA(str2[1], str2[2], str2[3]); eventA.addElement(event_temp); } } in.close(); }请为以上代码添加注释
04-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值