李维强-15级 发表于 2018-11-22 20:29:48

无隅-中间件注意事项

本帖最后由 李维强-15级 于 2020-3-26 23:25 编辑

在TcpServer内
文件固定放到C:\\Users\\Administrator\\Desktop\\NewTcpServer\\TcpServer.exe里面为好    程序名字定为TcpServer.exe,这个和看门狗程序相连
1:log.cs里面的
public static string path = System.Environment.CurrentDirectory;要改为一个固定的路径,存放log,因为使用系统环境变量给的路径,会随着谁启动这个程序,谁就是该程序环境变量路径,这里我用explorer来启动的,那么explorer的地址就是环境变量地址,log就会存里面。

2:ListenerThread类里
HeartBeatClient.Connect(IPAddress.Parse("115.28.30.250"), 10084); 地址为指定好,如果写成127.0.0.1则无法连接到本地上,具体原因不明

在WatchDog里
启动WatchDog.exe就直接启动了中间件程序,该看门狗会首先判断有没有心跳包输入,没有则会在进程里面遍历关掉TcpServer.exe,然后再启动TcpServer.exe。
启动中间件目标文件的位置固定为C:\\Users\\Administrator\\Desktop\\NewTcpServer\\TcpServer.exe

李维强-15级 发表于 2019-12-8 15:10:16

select * from ..
where datediff(mi,keydate,getdate())>10
order by roomstate;
select * from ..
where datediff(mi,keydate,getdate())>10
order by roomstate;
select * from ..
where datediff(mi,keydate,getdate())>10
order by roomstate

李维强-15级 发表于 2019-12-22 14:55:54

prot:   10086->hotel
port:12345->wuyu
port:12346->N37
prot:   12344->N37
port:12347->N38
port:12348->N39
port:12349->N40

李维强-15级 发表于 2020-4-1 12:49:29

本帖最后由 李维强-15级 于 2020-4-1 14:51 编辑

开卡json参数
{
        "card": {
                "card_type": "MEMBER_CARD",
                "member_card": {
                        "supply_bonus": false,
                        "supply_balance": false,
                        "prerogative": "test_prerogative",
                        "auto_activate": true,
                        "base_info": {
                                "logo_url": "http://wuyu.cqutlab.cn/Content/IMG/logocard.jpg",
                                "brand_name": "无隅",
                                "code_type": "CODE_TYPE_TEXT",
                                "title": "无隅酒店会员卡",
                                "color": "Color010",
                                "notice": "使用时向服务员出示此券",
                                "service_phone": "020-88888888",
                                "description": "不可与其他优惠同享",
                                "date_info": {
                                        "type": "DATE_TYPE_PERMANENT"
                                },
                                "sku": {
                                        "quantity": 0
                                },
                                "get_limit": 1,
                                "use_custom_code": true,
                                "get_custom_code_mode": "GET_CUSTOM_CODE_MODE_DEPOSIT",
                                "can_give_friend": true,
                                "custom_url_name": "订房首页",
                                "custom_url": "http://wuyu.cqutlab.cn/wxPage/Index",
                                "custom_url_sub_title": "4个分店选择",
                                "promotion_url_name": "订房页面",
                                "promotion_url": "http://wuyu.cqutlab.cn/wxPage/MainView",
                                "need_push_on_view": false
                        }
                }
        }
}
{"errcode":0,"errmsg":"ok","card_id":"pm4f9v5AU9UCDUwcvE4deZVxEou4"}
提交code过后的
{"errcode":0,"errmsg":"ok","succ_code":["001"],"duplicate_code":[],"fail_code":[]}

用js-sdk调用wx.addCard 发卡请求
页: [1]
查看完整版本: 无隅-中间件注意事项