Ver código fonte

串口模式可以用了

zhangyang 6 anos atrás
pai
commit
e7dbcbd254

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/db/pos.db


+ 304 - 0
bin/Win32/Debug/zhipuzi_pay_plugin/log/pos.log

@@ -6326,3 +6326,307 @@
 2019-08-15 23:30:42[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
 2019-08-15 23:30:48[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
 2019-08-15 23:30:48[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-15 23:31:56[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:31:56[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:31:56[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-15 23:31:56[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:31:56[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-15 23:31:56[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:31:56[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-15 23:31:57[INFO] - postString:nonce=123456&timestamp=1565883117&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-15 23:31:57[INFO] - sign:69B36702EF0B8BAA46AF293CF75246A9 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-15 23:31:57[INFO] - postString:nonce=123456&sign=69B36702EF0B8BAA46AF293CF75246A9&timestamp=1565883117&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-15 23:31:57[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"56nio1jjo28ehbjcgmjn9gl1r5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-15 23:31:57[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"56nio1jjo28ehbjcgmjn9gl1r5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-15 23:31:57[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-15 23:31:57[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:31:57[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-15 23:31:57[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:31:57[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-15 23:31:57[INFO] - [Parent window] window handle: 000100EA window name:  class name Shell_TrayWnd [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00060452 window name: 智铺子收银插件登录 class name UILoginFrame [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00030680 window name: zhipuzi_pay_plugin - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;5f8cf1f5-b117-42e2-95ec-770ce39a22e6] [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00750CDA window name: zhipuzi_pay_plugin class name CabinetWClass [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00030738 window name: db class name CabinetWClass [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00020BB2 window name: vc++ duilib中xml中combo不显示的问题_博问_博客园 - Google Chrome class name Chrome_WidgetWin_1 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00040666 window name:  class name popupshadow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0002067E window name:  class name popupshadow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0002067C window name: ChatContactMenu class name ChatContactMenu [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 000108A8 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00040272 window name: 设置 class name ApplicationFrameWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 000301B8 window name: Microsoft Store class name ApplicationFrameWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0001088A window name: Microsoft Store class name Windows.UI.Core.CoreWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00020210 window name: Microsoft Text Input Application class name Windows.UI.Core.CoreWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00010198 window name:  class name EdgeUiInputTopWndClass [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0001019E window name:  class name DummyDWMListenerWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0001017C window name:  class name DummyDWMListenerWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0001017A window name:  class name DummyDWMListenerWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00020CE2 window name: SQLiteStudio (3.2.1) - [pos_config (pos0)] class name Qt5QWindowIcon [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00040A48 window name:  class name Internet Explorer_Hidden [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 0002014A window name: Program Manager class name Progman [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 003108C4 window name:  class name SoPY_Status [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:31:58[INFO] - [Parent window] window handle: 00840CEC window name:  class name SoPY_Status [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-15 23:32:00[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-15 23:32:00[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:00:57[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:00:57[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:00:57[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:00:57[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:00:57[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:00:57[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:00:57[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:00:57[INFO] - postString:nonce=123456&timestamp=1565884857&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:00:57[INFO] - sign:7350580FEBBFB8BAEDEB91425CCB6D83 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:00:57[INFO] - postString:nonce=123456&sign=7350580FEBBFB8BAEDEB91425CCB6D83&timestamp=1565884857&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:00:58[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"m1scf4qf066jerv9rd1s7jkhm7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:00:58[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"m1scf4qf066jerv9rd1s7jkhm7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:00:58[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:00:58[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:00:58[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:00:58[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:00:58[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:00:58[INFO] - [Parent window] window handle: 000100EA window name:  class name Shell_TrayWnd [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:58[INFO] - [Parent window] window handle: 00030C46 window name:  class name HwndWrapper[DefaultDomain;;7805a45a-f7d6-4087-8fe6-dc24a2329917] [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00210C3A window name: 智铺子收银插件登录 class name UILoginFrame [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00030680 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;5f8cf1f5-b117-42e2-95ec-770ce39a22e6] [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00070A62 window name: D:\work\zhipuzi_pay_plugin\include\zpzDll\zpzDll.h - Notepad++ class name Notepad++ [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00750CDA window name: zpzDll class name CabinetWClass [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00020BB2 window name: (1条消息)C++ STL string 大小写转换 - linz的博客 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00030738 window name: db class name CabinetWClass [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00040666 window name:  class name popupshadow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0002067E window name:  class name popupshadow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0002067C window name: ChatContactMenu class name ChatContactMenu [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 000108A8 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00040272 window name: 设置 class name ApplicationFrameWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 000301B8 window name: Microsoft Store class name ApplicationFrameWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0001088A window name: Microsoft Store class name Windows.UI.Core.CoreWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00020210 window name: Microsoft Text Input Application class name Windows.UI.Core.CoreWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00010198 window name:  class name EdgeUiInputTopWndClass [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0001019E window name:  class name DummyDWMListenerWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0001017C window name:  class name DummyDWMListenerWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0001017A window name:  class name DummyDWMListenerWindow [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00020CE2 window name: SQLiteStudio (3.2.1) class name Qt5QWindowIcon [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 00040A48 window name:  class name Internet Explorer_Hidden [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 0002014A window name: Program Manager class name Progman [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:00:59[INFO] - [Parent window] window handle: 000A0686 window name:  class name SoPY_Status [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-16 00:12:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:12:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:12:12[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:12:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:12:12[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:12:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:12:12[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:12:13[INFO] - postString:nonce=123456&timestamp=1565885533&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:12:13[INFO] - sign:80E986A9FCD5B6490BCEE43137CFFE53 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:12:13[INFO] - postString:nonce=123456&sign=80E986A9FCD5B6490BCEE43137CFFE53&timestamp=1565885533&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:12:13[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"o1712cd0d597k9mgqh6q04uq55","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:12:13[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"o1712cd0d597k9mgqh6q04uq55","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:12:13[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:12:13[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:12:13[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:12:13[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:12:13[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:17:32[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:17:32[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:17:32[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:17:32[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:17:32[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:17:32[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:17:32[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:17:32[INFO] - postString:nonce=123456&timestamp=1565885852&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:17:32[INFO] - sign:12454871BF423FDFF54F18FBCAE6F5B0 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:17:32[INFO] - postString:nonce=123456&sign=12454871BF423FDFF54F18FBCAE6F5B0&timestamp=1565885852&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:17:33[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"si1k5fsvm4lk4rrj3p1i2qii46","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:17:33[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"si1k5fsvm4lk4rrj3p1i2qii46","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:17:33[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:17:33[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:17:33[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:17:33[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:17:33[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:19:50[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:19:50[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:19:50[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:19:50[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:19:50[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:19:50[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:19:50[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:19:50[INFO] - postString:nonce=123456&timestamp=1565885990&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:19:50[INFO] - sign:F2CE9F545530821953DBBA8CE1B5CAF3 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:19:50[INFO] - postString:nonce=123456&sign=F2CE9F545530821953DBBA8CE1B5CAF3&timestamp=1565885990&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:19:51[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"sus6o5au4c30c8iae0gdgr4oc5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:19:51[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"sus6o5au4c30c8iae0gdgr4oc5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:19:51[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:19:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:19:51[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:19:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:19:51[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:34:42[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:34:42[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:34:42[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:34:43[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:34:43[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:34:43[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:34:43[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:34:43[INFO] - postString:nonce=123456&timestamp=1565886883&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:34:43[INFO] - sign:2112F241FEE48DACE8E304FBACBC237D [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:34:43[INFO] - postString:nonce=123456&sign=2112F241FEE48DACE8E304FBACBC237D&timestamp=1565886883&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:34:44[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"b0rjffd3q9okbol3m5hnskj247","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:34:44[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"b0rjffd3q9okbol3m5hnskj247","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:34:44[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:34:44[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:34:44[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:34:44[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:34:44[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:35:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:35:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:35:11[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:35:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:35:11[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:35:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:35:11[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:35:11[INFO] - postString:nonce=123456&timestamp=1565886911&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:35:11[INFO] - sign:7E011503CD121A23FCBFE767CDAD53BC [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:35:11[INFO] - postString:nonce=123456&sign=7E011503CD121A23FCBFE767CDAD53BC&timestamp=1565886911&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:35:12[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"kh2eimg4ec2lgikdsc4u2rf8t5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:35:12[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"kh2eimg4ec2lgikdsc4u2rf8t5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:35:12[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:35:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:35:12[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:35:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:35:12[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:39:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:39:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:39:41[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:39:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:39:41[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:39:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:39:41[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:39:41[INFO] - postString:nonce=123456&timestamp=1565887181&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:39:41[INFO] - sign:3B941362068671663F2E5D1D1A24BA98 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:39:41[INFO] - postString:nonce=123456&sign=3B941362068671663F2E5D1D1A24BA98&timestamp=1565887181&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:39:42[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"gaoombhnt43jkqb5vo2dd3pcp7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:39:42[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"gaoombhnt43jkqb5vo2dd3pcp7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:39:42[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:39:42[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:39:42[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:39:42[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:39:42[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:40:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:40:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:40:11[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:40:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:40:11[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:40:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:40:11[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:40:11[INFO] - postString:nonce=123456&timestamp=1565887211&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:40:11[INFO] - sign:6AF94EE91197AF5044E5F447C40F3052 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:40:11[INFO] - postString:nonce=123456&sign=6AF94EE91197AF5044E5F447C40F3052&timestamp=1565887211&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:40:12[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6ngadrva63e0po9f8ckl9l99v2","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:40:12[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6ngadrva63e0po9f8ckl9l99v2","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:40:12[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:40:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:40:12[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:40:12[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:40:12[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:43:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:43:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:43:54[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:43:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:43:54[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:43:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:43:54[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:43:54[INFO] - postString:nonce=123456&timestamp=1565887434&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:43:54[INFO] - sign:265658289909165C1B4B286DFFA69535 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:43:54[INFO] - postString:nonce=123456&sign=265658289909165C1B4B286DFFA69535&timestamp=1565887434&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:43:55[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"8jh39n1kkgi2oikcau7pg92cq7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:43:55[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"8jh39n1kkgi2oikcau7pg92cq7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:43:55[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:43:55[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:43:55[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:43:55[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:43:55[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:45:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:45:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:45:29[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:45:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:45:29[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:45:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:45:29[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:45:29[INFO] - postString:nonce=123456&timestamp=1565887529&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:45:29[INFO] - sign:9C458264F67980BEC9A6223F90E865F4 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:45:29[INFO] - postString:nonce=123456&sign=9C458264F67980BEC9A6223F90E865F4&timestamp=1565887529&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:45:30[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"mr1m27b24ris576j3eqndc2fr7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:45:30[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"mr1m27b24ris576j3eqndc2fr7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:45:30[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:45:30[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:45:30[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:45:30[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:45:30[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:46:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:46:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:46:40[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:46:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:46:40[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:46:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:46:40[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:46:40[INFO] - postString:nonce=123456&timestamp=1565887600&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:46:40[INFO] - sign:7342018482555B72DA8C340AB85DC63D [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:46:40[INFO] - postString:nonce=123456&sign=7342018482555B72DA8C340AB85DC63D&timestamp=1565887600&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:46:41[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vhpmrke1l957nnmbtk00ja6qg5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:46:41[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vhpmrke1l957nnmbtk00ja6qg5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:46:41[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:46:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:46:41[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:46:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:46:41[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:50:19[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:50:19[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:50:19[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:50:19[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:50:19[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:50:19[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:50:19[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:50:19[INFO] - postString:nonce=123456&timestamp=1565887819&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:50:19[INFO] - sign:6761553301601FABAAA794FFADFAB9B0 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:50:19[INFO] - postString:nonce=123456&sign=6761553301601FABAAA794FFADFAB9B0&timestamp=1565887819&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:50:21[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"lkhhpn3inf4in4bkve3lqbmn06","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:50:21[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"lkhhpn3inf4in4bkve3lqbmn06","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:50:21[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:50:21[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:50:21[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:50:21[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:50:21[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:53:04[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:53:04[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:53:04[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:53:04[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:53:04[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:53:04[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:53:04[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:53:04[INFO] - postString:nonce=123456&timestamp=1565887984&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:53:04[INFO] - sign:6A4CD519048AE894EC536035090B45A9 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:53:04[INFO] - postString:nonce=123456&sign=6A4CD519048AE894EC536035090B45A9&timestamp=1565887984&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:53:05[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"t40m4jpmd1rnhse4s77f4d8f31","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:53:05[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"t40m4jpmd1rnhse4s77f4d8f31","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:53:05[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:53:05[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:53:05[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:53:05[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:53:05[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:57:49[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:57:49[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:57:49[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:57:49[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:57:49[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-16 00:57:49[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:57:49[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-16 00:57:49[INFO] - postString:nonce=123456&timestamp=1565888269&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-16 00:57:49[INFO] - sign:119EBF1B4F5F487623A5837F18EAF6C8 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-16 00:57:49[INFO] - postString:nonce=123456&sign=119EBF1B4F5F487623A5837F18EAF6C8&timestamp=1565888269&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-16 00:57:50[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vvv9af5gi6bf781ejggk1k6791","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-16 00:57:50[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vvv9af5gi6bf781ejggk1k6791","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-16 00:57:50[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-16 00:57:50[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:57:50[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-16 00:57:50[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-16 00:57:50[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zhipuzi_pay_plugin.exe


BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zpzDll.dll


+ 4 - 1
include/zpzDll/zpzDll.h

@@ -13,6 +13,9 @@
 HOOKAPI_API BOOL InstallHook();
 HOOKAPI_API void UninstallHook();
 
+HOOKAPI_API void SetHookStatus(bool isWork);
 HOOKAPI_API void SetHwnd(HWND hWnd);
+HOOKAPI_API void SetComNum(const char* s_comNum, const wchar_t* ws_comNum, size_t nLength);
+
+HOOKAPI_API void HookGetData(char* dst, int* length);
 
-HOOKAPI_API void HookGetData(char* dst, int* length);

BIN
lib/debug/zpzDll.lib


+ 5 - 0
zhipuzi_pay_plugin/wnd/CSystemSettingWnd.cpp

@@ -4,6 +4,8 @@
 #include "../control/ControlEx.h"
 #include "../tool/CComHelper.h"
 
+#include "CValueWnd.h"
+
 void CSystemSettingWnd::Init()
 {
 	::SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
@@ -369,6 +371,9 @@ void CSystemSettingWnd::HandleClickMsg(TNotifyUI& msg)
 
 			CSetting::SetParam("system_setting_jinezhuaqu_setting_xunichuankou_botelv", CLewaimaiString::UnicodeToUTF8(com_name_botelv));
 		}
+
+		//¸ø¼àÊÓ´°¿Ú·¢¸öÏûÏ¢
+		m_valueWnd->RestartWatch();
 	}
 
 }

+ 10 - 0
zhipuzi_pay_plugin/wnd/CSystemSettingWnd.h

@@ -1,8 +1,15 @@
 #pragma once
 
+class CValueWnd;
+
 class CSystemSettingWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
 {
 public:
+	CSystemSettingWnd(CValueWnd* value)
+	{
+		m_valueWnd = value;
+	}
+
 	LPCTSTR GetWindowClassName() const
 	{
 		return _T("UISystemSettingFrame");
@@ -66,5 +73,8 @@ public:
 	CPaintManagerUI m_pm;
 
 	int m_nType = 1;
+
+private:
+	CValueWnd* m_valueWnd;
 };
 

+ 52 - 22
zhipuzi_pay_plugin/wnd/CValueWnd.cpp

@@ -30,30 +30,16 @@ void CValueWnd::Init()
 	pMenu->Create(m_hWnd, L"智铺子收银插件菜单", WS_POPUP, WS_EX_TOOLWINDOW);
 	pMenu->ShowWindow(false);
 
-    BOOL isAdmin = CSystem::IsRunasAdmin();
-
-    if(isAdmin)
-    {
-        //MessageBox(m_hWnd, L"管理员", L"111", MB_OK);
-    }
-    else
-    {
-        //MessageBox(m_hWnd, L"非管理员", L"111", MB_OK);
-    }
-
-    SetHwnd(m_hWnd);
+	//先暂停Hook工作(因为不一定是串口模式)
+	::SetHookStatus(false);
 
+	//再安装钩子
     BOOL ret = InstallHook();
 
-    LONG id = GetWindowLongW((HWND)0x00211108, GWL_ID);
-    LONG b = id;
-
-    TCHAR szTitle[MAX_PATH];
-    LPWSTR lpWindowName = szTitle;
-
-    ::SendMessageW((HWND)0x00081342, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
-    wstring a = lpWindowName;
+	//开始启动监听
+	RestartWatch();
 
+/*
     std::thread(&CValueWnd::ReadValue, this).detach();
 
     std::thread(&CValueWnd::WatchWnd, this).detach();
@@ -88,7 +74,42 @@ void CValueWnd::Init()
 
     // cleanup
     tess.Clear();
-    pixDestroy(&pixs);
+    pixDestroy(&pixs);*/
+}
+
+void CValueWnd::RestartWatch()
+{
+	std::string system_setting_jinezhuaqu_setting_type = CSetting::GetParam("system_setting_jinezhuaqu_setting_type");
+
+	m_nWatchType = atoi(system_setting_jinezhuaqu_setting_type.c_str());
+
+	if (m_nWatchType == 1)
+	{
+		//更新监听的端口号
+		std::string system_setting_jinezhuaqu_setting_chuankou_num = CSetting::GetParam("system_setting_jinezhuaqu_setting_chuankou_num");
+		if (system_setting_jinezhuaqu_setting_chuankou_num == "")
+		{
+			//参数错误
+			return;
+		}
+
+		std::wstring ws_system_setting_jinezhuaqu_setting_chuankou_num = CLewaimaiString::UTF8ToUnicode(system_setting_jinezhuaqu_setting_chuankou_num);
+
+		//设置窗口句柄
+		::SetHwnd(m_hWnd);
+
+		//设置串口端口号
+		//统一成大写
+		std::transform(system_setting_jinezhuaqu_setting_chuankou_num.begin(), system_setting_jinezhuaqu_setting_chuankou_num.end(), system_setting_jinezhuaqu_setting_chuankou_num.begin(), ::toupper);
+		std::transform(ws_system_setting_jinezhuaqu_setting_chuankou_num.begin(), ws_system_setting_jinezhuaqu_setting_chuankou_num.end(), ws_system_setting_jinezhuaqu_setting_chuankou_num.begin(), ::toupper);
+
+		::SetComNum(system_setting_jinezhuaqu_setting_chuankou_num.c_str(), ws_system_setting_jinezhuaqu_setting_chuankou_num.c_str(), system_setting_jinezhuaqu_setting_chuankou_num.size());
+
+		//开始监听工作
+		::SetHookStatus(true);
+
+		//暂停其他监听的
+	}
 }
 
 void CValueWnd::ReadValue()
@@ -378,6 +399,13 @@ LRESULT CValueWnd::OnRButtonDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
 
 LRESULT CValueWnd::OnKexianUpdate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
+	//如果当前不是串口模式,直接忽略
+	if (m_nWatchType != 1)
+	{
+		bHandled = TRUE;
+		return true;
+	}
+
     //收到了客显数据消息,读取客显数据
     char data[MAX_DATA_LENGTH] = { 0 };
     int data_length = 0;
@@ -386,11 +414,13 @@ LRESULT CValueWnd::OnKexianUpdate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
 
     if(data_length == 0)
     {
+		bHandled = TRUE;
         return true;
     }
 
     UpdateKexian(data, data_length);
 
+	bHandled = TRUE;
     return true;
 }
 
@@ -673,7 +703,7 @@ void CValueWnd::ShowMenu()
 			return;
 		}
 
-		CSystemSettingWnd* pSystemSettingFrame = new CSystemSettingWnd();
+		CSystemSettingWnd* pSystemSettingFrame = new CSystemSettingWnd(this);
 
 		if (pSystemSettingFrame != NULL)
 		{

+ 5 - 0
zhipuzi_pay_plugin/wnd/CValueWnd.h

@@ -64,6 +64,8 @@ public:
 
 	void Init();
 
+	void RestartWatch();
+
 	void ReadValue();
 
 	void WatchWnd();
@@ -89,5 +91,8 @@ private:
 	CMenuWnd* pMenu;
 
 	bool m_is_show_setting = false;
+
+	//ĬÈÏ´®¿Ú¼àÌýµÄģʽ
+	int m_nWatchType = -1;
 };
 

+ 22 - 2
zpzDll/Hook.cpp

@@ -8,7 +8,12 @@
 #include "Detours/detours.h"
 #include "Detours/detver.h"
 
+#include <algorithm>
+
+extern bool g_isWork;
 extern HWND g_hWnd;
+extern char g_sComNum[MAX_PATH];
+extern wchar_t g_wsComNum[MAX_PATH];
 extern char g_data[MAX_DATA_LENGTH];
 extern int data_length;
 
@@ -54,10 +59,16 @@ HANDLE WINAPI Mine_CreateFileW(
 )
 {
 	HANDLE hPort = Real_CreateFileW(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
+	if (g_isWork == false)
+	{
+		return hPort;
+	}
+
 
 	std::wstring wsFileName = lpFileName;
+	std::transform(wsFileName.begin(), wsFileName.end(), wsFileName.begin(), ::toupper);
 
-	if (wsFileName.find(L"COM1") != wsFileName.npos || wsFileName.find(L"com1") != wsFileName.npos)
+	if (wsFileName.find(g_wsComNum) != wsFileName.npos)
 	{
 		//打开的是目标端口
 		if (hPort != INVALID_HANDLE_VALUE)
@@ -81,10 +92,15 @@ HANDLE WINAPI Mine_CreateFileA(
 )
 {
 	HANDLE hPort = Real_CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
+	if (g_isWork == false)
+	{
+		return hPort;
+	}
 
 	std::string FileName = lpFileName;
+	std::transform(FileName.begin(), FileName.end(), FileName.begin(), ::toupper);
 
-	if (FileName.find("COM1") != FileName.npos || FileName.find("com1") != FileName.npos)
+	if (FileName.find(g_sComNum) != FileName.npos)
 	{
 		//打开的是目标端口
 		if (hPort != INVALID_HANDLE_VALUE)
@@ -106,6 +122,10 @@ BOOL WINAPI Mine_WriteFile(
 )
 {
 	BOOL ret = Real_WriteFile(hFile, lpBuffer, nNumberOfBytesToWrite, lpNumberOfBytesWritten, lpOverlapped);
+	if (g_isWork == false)
+	{
+		return ret;
+	}
 
 	if (hFile == g_hPort)
 	{

+ 20 - 1
zpzDll/zpzDll.cpp

@@ -5,9 +5,14 @@
 #include "define.h"
 #include "zpzDll.h"
 
+#include <algorithm>
+
 //共享数据
-#pragma data_seg("shared")  
+#pragma data_seg("shared")
+bool g_isWork = false;
 HWND g_hWnd = NULL;
+char g_sComNum[MAX_PATH] = { 0 };
+wchar_t g_wsComNum[MAX_PATH] = { 0 };
 char g_data[MAX_DATA_LENGTH] = {0};
 int data_length = 0;
 #pragma data_seg()  
@@ -54,11 +59,25 @@ void UninstallHook()
 	}
 }
 
+void SetHookStatus(bool isWork)
+{
+	g_isWork = isWork;
+}
+
 void SetHwnd(HWND hWnd)
 {
 	g_hWnd = hWnd;
 }
 
+void SetComNum(const char* s_comNum, const wchar_t* ws_comNum, size_t nLength)
+{
+	memset(g_sComNum, 0, MAX_PATH);
+	memset(g_wsComNum, 0, MAX_PATH);
+
+	memcpy_s(g_sComNum, nLength, s_comNum, nLength);
+	wcscpy_s(g_wsComNum, ws_comNum);
+}
+
 /*
  *取出抓取到的消息,取出后就清空,保证每个消息只会取出一次
  **/

+ 2 - 0
zpzDll/zpzDll.h

@@ -13,7 +13,9 @@
 HOOKAPI_API BOOL InstallHook();
 HOOKAPI_API void UninstallHook();
 
+HOOKAPI_API void SetHookStatus(bool isWork);
 HOOKAPI_API void SetHwnd(HWND hWnd);
+HOOKAPI_API void SetComNum(const char* s_comNum, const wchar_t* ws_comNum, size_t nLength);
 
 HOOKAPI_API void HookGetData(char* dst, int* length);