Quellcode durchsuchen

还需要继续调试

zhangyang vor 6 Jahren
Ursprung
Commit
38c24bfd7d
40 geänderte Dateien mit 1676 neuen und 95 gelöschten Zeilen
  1. BIN
      bin/Win32/Debug/zhipuzi_pay_plugin/db/pos.db
  2. 255 0
      bin/Win32/Debug/zhipuzi_pay_plugin/log/pos.log
  3. 0 0
      bin/Win32/Debug/zhipuzi_pay_plugin/log/pos_error.log
  4. BIN
      bin/Win32/Debug/zhipuzi_pay_plugin/zhipuzi_pay_plugin.exe
  5. BIN
      bin/Win32/Debug/zhipuzi_pay_plugin/zpzDll.dll
  6. 1059 0
      include/Detours/detours.h
  7. 27 0
      include/Detours/detver.h
  8. 89 0
      include/Detours/syelog.h
  9. 12 0
      include/zpzDll/zpzDll.h
  10. BIN
      lib/debug/detours.lib
  11. BIN
      lib/debug/syelog.lib
  12. BIN
      lib/debug/zpzDll.lib
  13. BIN
      lib/release/detours.lib
  14. BIN
      lib/release/syelog.lib
  15. 45 48
      zhipuzi_pay_plugin/wnd/CValueWnd.cpp
  16. 2 2
      zhipuzi_pay_plugin/zhipuzi_pay_plugin.vcxproj
  17. BIN
      zpzDll/Debug/dllmain.obj
  18. BIN
      zpzDll/Debug/stdafx.obj
  19. BIN
      zpzDll/Debug/vc141.idb
  20. BIN
      zpzDll/Debug/vc141.pdb
  21. 0 18
      zpzDll/Debug/zpzDll.Build.CppClean.log
  22. 0 3
      zpzDll/Debug/zpzDll.log
  23. BIN
      zpzDll/Debug/zpzDll.obj
  24. BIN
      zpzDll/Debug/zpzDll.pch
  25. BIN
      zpzDll/Debug/zpzDll.tlog/CL.command.1.tlog
  26. BIN
      zpzDll/Debug/zpzDll.tlog/CL.read.1.tlog
  27. BIN
      zpzDll/Debug/zpzDll.tlog/CL.write.1.tlog
  28. BIN
      zpzDll/Debug/zpzDll.tlog/link.16612.delete.1.tlog
  29. BIN
      zpzDll/Debug/zpzDll.tlog/link.command.1.tlog
  30. BIN
      zpzDll/Debug/zpzDll.tlog/link.read.1.tlog
  31. BIN
      zpzDll/Debug/zpzDll.tlog/link.write.1.tlog
  32. 0 2
      zpzDll/Debug/zpzDll.tlog/zpzDll.lastbuildstate
  33. BIN
      zpzDll/Debug/zpzDll.tlog/zpzDll.write.1u.tlog
  34. 112 0
      zpzDll/Hook.cpp
  35. 5 0
      zpzDll/Hook.h
  36. 16 7
      zpzDll/dllmain.cpp
  37. 28 12
      zpzDll/zpzDll.cpp
  38. 10 2
      zpzDll/zpzDll.h
  39. 10 1
      zpzDll/zpzDll.vcxproj
  40. 6 0
      zpzDll/zpzDll.vcxproj.filters

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


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

@@ -808,3 +808,258 @@
 2019-07-30 00:52:17[INFO] - read num:13 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\cserialport.cpp:135]
 2019-07-30 00:52:17[INFO] - read num:13 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\cserialport.cpp:135]
 2019-07-30 00:53:30[INFO] - a:QA65
s2s [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\wnd\cvaluewnd.cpp:72]
 2019-07-30 00:53:30[INFO] - a:QA65
s2s [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\wnd\cvaluewnd.cpp:72]
 2019-07-30 00:53:37[INFO] - read num:100 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\cserialport.cpp:135]
 2019-07-30 00:53:37[INFO] - read num:100 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\cserialport.cpp:135]
+2019-08-02 13:32:44[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:32:44[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:32:44[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 13:32:44[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:32:44[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 13:32:44[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:32:44[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 13:32:44[INFO] - postString:nonce=123456&timestamp=1564723964&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 13:32:44[INFO] - sign:E6946C4367A73C61D6775D68D90AB5AF [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 13:32:44[INFO] - postString:nonce=123456&sign=E6946C4367A73C61D6775D68D90AB5AF&timestamp=1564723964&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 13:32:45[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6o9alfn8oj8l25dvsc7bgq1au3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 13:32:45[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6o9alfn8oj8l25dvsc7bgq1au3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 13:32:45[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 13:32:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:32:45[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 13:32:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:32:45[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 13:45:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:45:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:45:11[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 13:45:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:45:11[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 13:45:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:45:11[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 13:45:11[INFO] - postString:nonce=123456&timestamp=1564724711&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 13:45:11[INFO] - sign:4A14943C0937890A4CB81083E3EC9B14 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 13:45:11[INFO] - postString:nonce=123456&sign=4A14943C0937890A4CB81083E3EC9B14&timestamp=1564724711&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 13:45:12[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"l9j3l2hgpg69kg2v7lmnga3a04","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 13:45:12[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"l9j3l2hgpg69kg2v7lmnga3a04","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 13:45:12[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 13:45:12[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:45:12[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 13:45:12[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 13:45:12[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 14:32:48[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:32:48[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:32:48[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 14:32:48[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:32:48[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 14:32:48[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:32:48[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 14:32:48[INFO] - postString:nonce=123456&timestamp=1564727568&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 14:32:48[INFO] - sign:C7540B521BD2BB732DF4304CD0025877 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 14:32:48[INFO] - postString:nonce=123456&sign=C7540B521BD2BB732DF4304CD0025877&timestamp=1564727568&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 14:32:49[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"sa08892l3edv4bumn4u87fobi6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 14:32:49[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"sa08892l3edv4bumn4u87fobi6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 14:32:49[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 14:32:49[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:32:49[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 14:32:49[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:32:49[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 14:41:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:41:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:41:14[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 14:41:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:41:14[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 14:41:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:41:14[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 14:41:14[INFO] - postString:nonce=123456&timestamp=1564728074&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 14:41:14[INFO] - sign:99336E79C60F3DA3DF34C7C53512DDE1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 14:41:14[INFO] - postString:nonce=123456&sign=99336E79C60F3DA3DF34C7C53512DDE1&timestamp=1564728074&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 14:41:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"sbv8qse2oh5l8abd6gup4m5k70","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 14:41:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"sbv8qse2oh5l8abd6gup4m5k70","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 14:41:15[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 14:41:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:41:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 14:41:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 14:41:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 15:27:59[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 15:27:59[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 15:27:59[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 15:27:59[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 15:27:59[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 15:27:59[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 15:27:59[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 15:27:59[INFO] - postString:nonce=123456&timestamp=1564730879&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 15:27:59[INFO] - sign:FF4C7EC2D4B68EF3493863D3E7BBE212 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 15:27:59[INFO] - postString:nonce=123456&sign=FF4C7EC2D4B68EF3493863D3E7BBE212&timestamp=1564730879&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 15:28:00[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"2k0v8en4gcnvhesqage2ih8v51","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 15:28:00[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"2k0v8en4gcnvhesqage2ih8v51","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 15:28:00[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 15:28:00[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 15:28:00[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 15:28:00[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 15:28:00[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 18:20:22[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:20:22[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:20:22[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 18:20:22[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:20:22[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 18:20:22[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:20:22[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 18:20:22[INFO] - postString:nonce=123456&timestamp=1564741222&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 18:20:22[INFO] - sign:6EF5BA00165474527BD38EEF7F0B85D0 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 18:20:22[INFO] - postString:nonce=123456&sign=6EF5BA00165474527BD38EEF7F0B85D0&timestamp=1564741222&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 18:20:23[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"d59mdhj87j9jd9l20247is1bi6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 18:20:23[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"d59mdhj87j9jd9l20247is1bi6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 18:20:23[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 18:20:23[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:20:24[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 18:20:24[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:20:24[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 18:52:52[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:52:52[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:52:52[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 18:52:52[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:52:52[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 18:52:52[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:52:52[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 18:52:52[INFO] - postString:nonce=123456&timestamp=1564743172&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 18:52:52[INFO] - sign:FE6311B73CE02E718E74AEFCDDDE584A [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 18:52:52[INFO] - postString:nonce=123456&sign=FE6311B73CE02E718E74AEFCDDDE584A&timestamp=1564743172&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 18:52:53[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vqbepk1mclppv3i9idmc24bnh7","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 18:52:53[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vqbepk1mclppv3i9idmc24bnh7","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 18:52:53[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 18:52:53[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:52:53[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 18:52:53[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 18:52:53[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:03:49[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:03:49[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:03:49[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:03:49[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:03:49[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:03:49[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:03:49[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:03:49[INFO] - postString:nonce=123456&timestamp=1564743829&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:03:49[INFO] - sign:E73095719A9947D434675BAEEF3C4334 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:03:49[INFO] - postString:nonce=123456&sign=E73095719A9947D434675BAEEF3C4334&timestamp=1564743829&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:03:50[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6f1qesr66ucjoodibloshfj3i0","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:03:50[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6f1qesr66ucjoodibloshfj3i0","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:03:50[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:03:50[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:03:50[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:03:50[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:03:50[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:07:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:07:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:07:14[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:07:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:07:14[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:07:14[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:07:14[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:07:14[INFO] - postString:nonce=123456&timestamp=1564744034&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:07:14[INFO] - sign:7ECED17BB61CE8DD310CE3AF34332F88 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:07:14[INFO] - postString:nonce=123456&sign=7ECED17BB61CE8DD310CE3AF34332F88&timestamp=1564744034&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:07:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"pabovl7r28rm0s3rfv49aa9tg3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:07:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"pabovl7r28rm0s3rfv49aa9tg3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:07:15[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:07:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:07:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:07:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:07:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:08:50[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:08:50[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:08:50[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:08:50[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:08:50[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:08:50[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:08:50[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:08:50[INFO] - postString:nonce=123456&timestamp=1564744130&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:08:50[INFO] - sign:95800B99AA80238AA8C00BA15769211B [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:08:50[INFO] - postString:nonce=123456&sign=95800B99AA80238AA8C00BA15769211B&timestamp=1564744130&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:08:52[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"p21kdj837ehngsuq666u7i1kn6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:08:52[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"p21kdj837ehngsuq666u7i1kn6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:08:52[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:08:52[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:08:52[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:08:52[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:08:52[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:19:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:19:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:19:08[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:19:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:19:08[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:19:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:19:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:19:08[INFO] - postString:nonce=123456&timestamp=1564744748&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:19:08[INFO] - sign:55B210E352B5372E1630FF231098F78E [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:19:08[INFO] - postString:nonce=123456&sign=55B210E352B5372E1630FF231098F78E&timestamp=1564744748&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:19:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"a60spih0fsps3riruouorbd5u5","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:19:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"a60spih0fsps3riruouorbd5u5","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:19:08[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:19:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:19:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:19:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:19:09[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:23:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:23:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:23:45[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:23:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:23:45[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:23:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:23:45[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:23:45[INFO] - postString:nonce=123456&timestamp=1564745025&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:23:45[INFO] - sign:B10807AA2EB89BEA982B8912BEB630C8 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:23:45[INFO] - postString:nonce=123456&sign=B10807AA2EB89BEA982B8912BEB630C8&timestamp=1564745025&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:23:46[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"kqr55m05303qpbum5rpb9dkhr2","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:23:46[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"kqr55m05303qpbum5rpb9dkhr2","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:23:46[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:23:46[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:23:46[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:23:46[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:23:46[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:33:53[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:33:53[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:33:53[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:33:53[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:33:53[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:33:53[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:33:53[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:33:53[INFO] - postString:nonce=123456&timestamp=1564745633&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:33:53[INFO] - sign:34229D317BA3ACF8B48E78F817F82ACD [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:33:53[INFO] - postString:nonce=123456&sign=34229D317BA3ACF8B48E78F817F82ACD&timestamp=1564745633&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:33:54[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"caeogkk2f65onssr8srvjk4jt6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:33:54[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"caeogkk2f65onssr8srvjk4jt6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:33:54[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:33:54[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:33:54[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:33:54[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:33:54[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:41:54[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:41:54[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:41:54[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:41:54[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:41:54[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:41:54[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:41:54[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:41:54[INFO] - postString:nonce=123456&timestamp=1564746114&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:41:54[INFO] - sign:D34DF40F4F64D00CB81DB639355AD11B [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:41:54[INFO] - postString:nonce=123456&sign=D34DF40F4F64D00CB81DB639355AD11B&timestamp=1564746114&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:41:55[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"qb87m9q3ofn71p50dddmkblqq4","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:41:55[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"qb87m9q3ofn71p50dddmkblqq4","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:41:55[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:41:55[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:41:55[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:41:55[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:41:55[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:51:18[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:51:18[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:51:18[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:51:18[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:51:18[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-02 19:51:18[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:51:18[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-02 19:51:18[INFO] - postString:nonce=123456&timestamp=1564746678&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-02 19:51:18[INFO] - sign:10FEBE2084496DCB4739EFB82C52A505 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-02 19:51:18[INFO] - postString:nonce=123456&sign=10FEBE2084496DCB4739EFB82C52A505&timestamp=1564746678&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-02 19:51:19[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"20q8ci33ls6849atl30shnu3m3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-02 19:51:19[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"20q8ci33ls6849atl30shnu3m3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-02 19:51:19[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-02 19:51:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:51:19[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-02 19:51:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-02 19:51:19[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]

+ 0 - 0
bin/Win32/Debug/zhipuzi_pay_plugin/log/pos_error.log


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


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


Datei-Diff unterdrückt, da er zu groß ist
+ 1059 - 0
include/Detours/detours.h


+ 27 - 0
include/Detours/detver.h

@@ -0,0 +1,27 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+//  Common version parameters.
+//
+//  Microsoft Research Detours Package, Version 3.0 Build_343.
+//
+//  Copyright (c) Microsoft Corporation.  All rights reserved.
+//
+
+#define _USING_V110_SDK71_ 1
+#include "winver.h"
+#if 0
+#include <windows.h>
+#include <detours.h>
+#else
+#ifndef DETOURS_STRINGIFY
+#define DETOURS_STRINGIFY(x)    DETOURS_STRINGIFY_(x)
+#define DETOURS_STRINGIFY_(x)    #x
+#endif
+
+#define VER_FILEFLAGSMASK   0x3fL
+#define VER_FILEFLAGS       0x0L
+#define VER_FILEOS          0x00040004L
+#define VER_FILETYPE        0x00000002L
+#define VER_FILESUBTYPE     0x00000000L
+#endif
+#define VER_DETOURS_BITS    DETOUR_STRINGIFY(DETOURS_BITS)

+ 89 - 0
include/Detours/syelog.h

@@ -0,0 +1,89 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+//  Detours Test Program (syelog.h of syelog.lib)
+//
+//  Microsoft Research Detours Package, Version 3.0.
+//
+//  Copyright (c) Microsoft Corporation.  All rights reserved.
+//
+#pragma once
+#ifndef _SYELOGD_H_
+#define _SYELOGD_H_
+#include <stdarg.h>
+
+#pragma pack(push, 1)
+#pragma warning(push)
+#pragma warning(disable: 4200)
+
+//////////////////////////////////////////////////////////////////////////////
+//
+//
+#define SYELOG_PIPE_NAMEA       "\\\\.\\pipe\\syelog"
+#define SYELOG_PIPE_NAMEW       L"\\\\.\\pipe\\syelog"
+#ifdef UNICODE
+#define SYELOG_PIPE_NAME        SYELOG_PIPE_NAMEW
+#else
+#define SYELOG_PIPE_NAME        SYELOG_PIPE_NAMEA
+#endif
+
+//////////////////////////////////////////////////////////////////////////////
+//
+#define SYELOG_MAXIMUM_MESSAGE  4086    // 4096 - sizeof(header stuff)
+
+typedef struct _SYELOG_MESSAGE
+{
+    USHORT      nBytes;
+    BYTE        nFacility;
+    BYTE        nSeverity;
+    DWORD       nProcessId;
+    FILETIME    ftOccurance;
+    BOOL        fTerminate;
+    CHAR        szMessage[SYELOG_MAXIMUM_MESSAGE];
+} SYELOG_MESSAGE, *PSYELOG_MESSAGE;
+
+
+// Facility Codes.
+//
+#define SYELOG_FACILITY_KERNEL          0x10            // OS Kernel
+#define SYELOG_FACILITY_SECURITY        0x20            // OS Security
+#define SYELOG_FACILITY_LOGGING         0x30            // OS Logging-internal
+#define SYELOG_FACILITY_SERVICE         0x40            // User-mode system daemon
+#define SYELOG_FACILITY_APPLICATION     0x50            // User-mode application
+#define SYELOG_FACILITY_USER            0x60            // User self-generated.
+#define SYELOG_FACILITY_LOCAL0          0x70            // Locally defined.
+#define SYELOG_FACILITY_LOCAL1          0x71            // Locally defined.
+#define SYELOG_FACILITY_LOCAL2          0x72            // Locally defined.
+#define SYELOG_FACILITY_LOCAL3          0x73            // Locally defined.
+#define SYELOG_FACILITY_LOCAL4          0x74            // Locally defined.
+#define SYELOG_FACILITY_LOCAL5          0x75            // Locally defined.
+#define SYELOG_FACILITY_LOCAL6          0x76            // Locally defined.
+#define SYELOG_FACILITY_LOCAL7          0x77            // Locally defined.
+#define SYELOG_FACILITY_LOCAL8          0x78            // Locally defined.
+#define SYELOG_FACILITY_LOCAL9          0x79            // Locally defined.
+
+// Severity Codes.
+//
+#define SYELOG_SEVERITY_FATAL           0x00            // System is dead.
+#define SYELOG_SEVERITY_ALERT           0x10            // Take action immediately.
+#define SYELOG_SEVERITY_CRITICAL        0x20            // Critical condition.
+#define SYELOG_SEVERITY_ERROR           0x30            // Error
+#define SYELOG_SEVERITY_WARNING         0x40            // Warning
+#define SYELOG_SEVERITY_NOTICE          0x50            // Significant condition.
+#define SYELOG_SEVERITY_INFORMATION     0x60            // Informational
+#define SYELOG_SEVERITY_AUDIT_FAIL      0x66            // Audit Failed
+#define SYELOG_SEVERITY_AUDIT_PASS      0x67            // Audit Succeeeded
+#define SYELOG_SEVERITY_DEBUG           0x70            // Debugging
+
+// Logging Functions.
+//
+VOID SyelogOpen(PCSTR pszIdentifier, BYTE nFacility);
+VOID Syelog(BYTE nSeverity, PCSTR pszMsgf, ...);
+VOID SyelogV(BYTE nSeverity, PCSTR pszMsgf, va_list args);
+VOID SyelogClose(BOOL fTerminate);
+
+#pragma warning(pop)
+#pragma pack(pop)
+
+#endif //  _SYELOGD_H_
+//
+///////////////////////////////////////////////////////////////// End of File.

+ 12 - 0
include/zpzDll/zpzDll.h

@@ -0,0 +1,12 @@
+#pragma once
+
+#ifdef HOOKAPI_EXPORTS
+#define HOOKAPI_API __declspec(dllexport)
+#else
+#define HOOKAPI_API __declspec(dllimport)
+#endif
+
+HOOKAPI_API BOOL InstallHook();
+HOOKAPI_API void UninstallHook();
+
+HOOKAPI_API void SetHwnd(HWND hWnd);

BIN
lib/debug/detours.lib


BIN
lib/debug/syelog.lib


BIN
lib/debug/zpzDll.lib


BIN
lib/release/detours.lib


BIN
lib/release/syelog.lib


+ 45 - 48
zhipuzi_pay_plugin/wnd/CValueWnd.cpp

@@ -5,6 +5,8 @@
 
 
 #include "../tool/CSerialPort.h"
 #include "../tool/CSerialPort.h"
 
 
+#include <zpzDll/zpzDll.h>
+
 void CValueWnd::Notify(TNotifyUI& msg)
 void CValueWnd::Notify(TNotifyUI& msg)
 {
 {
 	if (msg.sType == _T("click"))
 	if (msg.sType == _T("click"))
@@ -25,57 +27,52 @@ void CValueWnd::Init()
 void CValueWnd::ReadValue()
 void CValueWnd::ReadValue()
 {
 {
 	//读取串口的模式
 	//读取串口的模式
-	CComHelper helper;
-	std::vector<std::wstring> comVector = helper.getComPort();
-
-	for (std::vector<std::wstring>::iterator it = comVector.begin(); it != comVector.end(); it++)
+	//CComHelper helper;
+	//std::vector<std::wstring> comVector = helper.getComPort();
+
+	//for (std::vector<std::wstring>::iterator it = comVector.begin(); it != comVector.end(); it++)
+	//{
+	//	std::wstring comName = *it;
+	//	LOG_INFO("comName:" << comName.c_str());
+	//}
+
+	//int nReadType = 1;
+
+	//if (nReadType == 1)
+	//{
+	//	std::wstring com_name = L"COM2";
+	//	CSerialPort serial(com_name.c_str(), 2400);
+
+	//	bool ret = serial.openComm();
+	//	if (!ret)
+	//	{
+	//		LOG_INFO("open com failed!");
+	//		return;
+	//	}
+
+	//	while (true)
+	//	{
+	//		//开始读取串口的数据			
+	//		char a[1024] = { 0 };
+	//		serial.readFromComm(a, 1024);
+
+	//		LOG_INFO("a:" << a);
+
+	//		Sleep(200);
+	//	}
+
+	//	serial.closeComm();
+	//}
+	//} 
+
+	BOOL ret = InstallHook();
+	if (ret)
 	{
 	{
-		std::wstring comName = *it;
-		LOG_INFO("comName:" << comName.c_str());
+		int a = 1;
 	}
 	}
 
 
-	int nReadType = 1;
-
-	if (nReadType == 1)
-	{
-		std::wstring com_name = L"COM2";
-		CSerialPort serial(com_name.c_str(), 2400);
-
-		bool ret = serial.openComm();
-		if (!ret)
-		{
-			LOG_INFO("open com failed!");
-			return;
-		}
-
-		//HANDLE m_hComm = CreateFile(L"COM1",
-		//	GENERIC_READ | GENERIC_WRITE, //允许读和写
-		//	FILE_SHARE_READ | FILE_SHARE_WRITE,		//独占方式
-		//	NULL, OPEN_EXISTING,   //打开而不是创建
-		//	0,   //同步方式
-		//	NULL
-		//);
-
-		//if (m_hComm == INVALID_HANDLE_VALUE)
-		//{
-		//	int error = GetLastError();
-		//	int a = error;
-
-		//}
-
-		while (true)
-		{
-			//开始读取串口的数据			
-			char a[1024] = { 0 };
-			serial.readFromComm(a, 1024);
-
-			LOG_INFO("a:" << a);
-
-			Sleep(200);
-		}
-
-		serial.closeComm();
-	}
+	SetHwnd(m_hWnd);
+	int b = 1;
 }
 }
 
 
 LRESULT CValueWnd::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 LRESULT CValueWnd::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)

+ 2 - 2
zhipuzi_pay_plugin/zhipuzi_pay_plugin.vcxproj

@@ -128,7 +128,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
       <PreprocessorDefinitions>_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x600;LOG4CPLUS_DISABLE_DLL_RUNTIME_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x600;LOG4CPLUS_DISABLE_DLL_RUNTIME_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>false</ConformanceMode>
       <ConformanceMode>false</ConformanceMode>
       <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
       <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
-      <AdditionalIncludeDirectories>$(SolutionDir)include;$(ProjectDir)pch</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)include;</AdditionalIncludeDirectories>
       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
       <DisableSpecificWarnings>4099</DisableSpecificWarnings>
       <DisableSpecificWarnings>4099</DisableSpecificWarnings>
     </ClCompile>
     </ClCompile>
@@ -136,7 +136,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
       <SubSystem>Windows</SubSystem>
       <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <AdditionalLibraryDirectories>$(SolutionDir)lib\debug</AdditionalLibraryDirectories>
       <AdditionalLibraryDirectories>$(SolutionDir)lib\debug</AdditionalLibraryDirectories>
-      <AdditionalDependencies>dbghelp.lib;winmm.lib;setupapi.lib;AdvAPI32.lib;Shell32.lib;user32.lib;kernel32.lib;Gdi32.lib;libboost_date_time-vc141-mt-sgd-x32-1_70.lib;libboost_regex-vc141-mt-sgd-x32-1_70.lib;sqlite3.lib;libcurl.lib;DuiLib_ud.lib;log4cplusUD.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>dbghelp.lib;winmm.lib;setupapi.lib;AdvAPI32.lib;Shell32.lib;user32.lib;kernel32.lib;Gdi32.lib;libboost_date_time-vc141-mt-sgd-x32-1_70.lib;libboost_regex-vc141-mt-sgd-x32-1_70.lib;sqlite3.lib;libcurl.lib;DuiLib_ud.lib;log4cplusUD.lib;version.lib;zpzDll.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <IgnoreSpecificDefaultLibraries>
       <IgnoreSpecificDefaultLibraries>
       </IgnoreSpecificDefaultLibraries>
       </IgnoreSpecificDefaultLibraries>
       <Version>
       <Version>

BIN
zpzDll/Debug/dllmain.obj


BIN
zpzDll/Debug/stdafx.obj


BIN
zpzDll/Debug/vc141.idb


BIN
zpzDll/Debug/vc141.pdb


+ 0 - 18
zpzDll/Debug/zpzDll.Build.CppClean.log

@@ -1,18 +0,0 @@
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.pch
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\vc141.pdb
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\vc141.idb
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\stdafx.obj
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.obj
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\dllmain.obj
-d:\work\zhipuzi_pay_plugin\debug\zpzdll.dll
-d:\work\zhipuzi_pay_plugin\debug\zpzdll.ilk
-d:\work\zhipuzi_pay_plugin\debug\zpzdll.pdb
-d:\work\zhipuzi_pay_plugin\debug\zpzdll.lib
-d:\work\zhipuzi_pay_plugin\debug\zpzdll.exp
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\cl.command.1.tlog
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\cl.read.1.tlog
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\cl.write.1.tlog
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\link.command.1.tlog
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\link.read.1.tlog
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\link.write.1.tlog
-d:\work\zhipuzi_pay_plugin\zpzdll\debug\zpzdll.tlog\zpzdll.write.1u.tlog

+ 0 - 3
zpzDll/Debug/zpzDll.log

@@ -1,3 +0,0 @@
-  zpzDll.cpp
-    正在创建库 D:\work\zhipuzi_pay_plugin\Debug\zpzDll.lib 和对象 D:\work\zhipuzi_pay_plugin\Debug\zpzDll.exp
-  zpzDll.vcxproj -> D:\work\zhipuzi_pay_plugin\Debug\zpzDll.dll

BIN
zpzDll/Debug/zpzDll.obj


BIN
zpzDll/Debug/zpzDll.pch


BIN
zpzDll/Debug/zpzDll.tlog/CL.command.1.tlog


BIN
zpzDll/Debug/zpzDll.tlog/CL.read.1.tlog


BIN
zpzDll/Debug/zpzDll.tlog/CL.write.1.tlog


BIN
zpzDll/Debug/zpzDll.tlog/link.16612.delete.1.tlog


BIN
zpzDll/Debug/zpzDll.tlog/link.command.1.tlog


BIN
zpzDll/Debug/zpzDll.tlog/link.read.1.tlog


BIN
zpzDll/Debug/zpzDll.tlog/link.write.1.tlog


+ 0 - 2
zpzDll/Debug/zpzDll.tlog/zpzDll.lastbuildstate

@@ -1,2 +0,0 @@
-#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0
-Debug|Win32|D:\work\zhipuzi_pay_plugin\|

BIN
zpzDll/Debug/zpzDll.tlog/zpzDll.write.1u.tlog


+ 112 - 0
zpzDll/Hook.cpp

@@ -0,0 +1,112 @@
+#include "stdafx.h"
+#include "Hook.h"
+
+#include <windows.h>
+#include <stdio.h>
+
+#include "Detours/detours.h"
+#include "Detours/detver.h"
+
+#include <string>
+
+extern HWND g_hWnd;
+
+static HANDLE (WINAPI * Real_CreateFileW)(
+	__in     LPCWSTR lpFileName,
+	__in     DWORD dwDesiredAccess,
+	__in     DWORD dwShareMode,
+	__in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+	__in     DWORD dwCreationDisposition,
+	__in     DWORD dwFlagsAndAttributes,
+	__in_opt HANDLE hTemplateFile
+	) = CreateFileW;
+
+static HANDLE(WINAPI * Real_CreateFileA)(
+	__in     LPCSTR lpFileName,
+	__in     DWORD dwDesiredAccess,
+	__in     DWORD dwShareMode,
+	__in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+	__in     DWORD dwCreationDisposition,
+	__in     DWORD dwFlagsAndAttributes,
+	__in_opt HANDLE hTemplateFile
+	) = CreateFileA;
+
+HANDLE WINAPI Mine_CreateFileW(
+	__in     LPCWSTR lpFileName,
+	__in     DWORD dwDesiredAccess,
+	__in     DWORD dwShareMode,
+	__in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+	__in     DWORD dwCreationDisposition,
+	__in     DWORD dwFlagsAndAttributes,
+	__in_opt HANDLE hTemplateFile
+)
+{
+	std::wstring wsFileName = lpFileName;
+
+	if (wsFileName == L"COM1" || wsFileName == L"com1")
+	{
+		MessageBox(NULL, L"1111111111", L"2222", MB_OK);
+	}
+
+	return Real_CreateFileW(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
+}
+
+HANDLE WINAPI Mine_CreateFileA(
+	__in     LPCSTR lpFileName,
+	__in     DWORD dwDesiredAccess,
+	__in     DWORD dwShareMode,
+	__in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+	__in     DWORD dwCreationDisposition,
+	__in     DWORD dwFlagsAndAttributes,
+	__in_opt HANDLE hTemplateFile
+)
+{
+	std::string FileName = lpFileName;
+
+	if (FileName == "COM1" || FileName == "com1")
+	{
+		MessageBox(NULL, L"1111111111", L"2222", MB_OK);
+	}
+
+	return Real_CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
+}
+
+void Hook()
+{
+	LONG error;
+
+	DetourRestoreAfterWith();
+	DetourTransactionBegin();
+	DetourUpdateThread(GetCurrentThread());
+
+	DetourAttach(&(PVOID&)Real_CreateFileW, Mine_CreateFileW);
+	DetourAttach(&(PVOID&)Real_CreateFileA, Mine_CreateFileA);
+
+	error = DetourTransactionCommit();
+
+	if (error == NO_ERROR) {
+		printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:"
+			" Detoured Echo().\n");
+	}
+	else {
+		printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:"
+			" Error detouring Echo(): %d\n", error);
+	}
+}
+
+void UnHook()
+{
+	LONG error;
+
+	DetourTransactionBegin();
+	DetourUpdateThread(GetCurrentThread());
+
+	DetourDetach(&(PVOID&)Real_CreateFileW, Mine_CreateFileW);
+	DetourDetach(&(PVOID&)Real_CreateFileA, Mine_CreateFileA);
+
+	error = DetourTransactionCommit();
+
+	printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:"
+		" Removed Echo() (result=%d)\n", error);
+	fflush(stdout);
+}

+ 5 - 0
zpzDll/Hook.h

@@ -0,0 +1,5 @@
+#pragma once
+
+void Hook();
+void UnHook();
+

+ 16 - 7
zpzDll/dllmain.cpp

@@ -1,24 +1,33 @@
 // dllmain.cpp : 定义 DLL 应用程序的入口点。
 // dllmain.cpp : 定义 DLL 应用程序的入口点。
 #include "stdafx.h"
 #include "stdafx.h"
 
 
+#include "Hook.h"
+
 HINSTANCE g_Inst = NULL; //DLL模块句柄
 HINSTANCE g_Inst = NULL; //DLL模块句柄
 
 
-BOOL APIENTRY DllMain( HMODULE hModule,
-                       DWORD  ul_reason_for_call,
-                       LPVOID lpReserved
+BOOL APIENTRY DllMain(HMODULE hModule,
+                      DWORD  ul_reason_for_call,
+                      LPVOID lpReserved
                      )
                      )
 {
 {
-    switch (ul_reason_for_call)
+    g_Inst = (HINSTANCE)hModule;
+
+    switch(ul_reason_for_call)
     {
     {
     case DLL_PROCESS_ATTACH:
     case DLL_PROCESS_ATTACH:
+	{
+		//Hook();
+		break;
+	}
     case DLL_THREAD_ATTACH:
     case DLL_THREAD_ATTACH:
     case DLL_THREAD_DETACH:
     case DLL_THREAD_DETACH:
     case DLL_PROCESS_DETACH:
     case DLL_PROCESS_DETACH:
-        break;
+	{
+		//UnHook();
+		break;
+	}
     }
     }
 
 
-	g_Inst = (HINSTANCE)hModule;
-
     return TRUE;
     return TRUE;
 }
 }
 
 

+ 28 - 12
zpzDll/zpzDll.cpp

@@ -7,7 +7,7 @@
 #include <windows.h>
 #include <windows.h>
 
 
 #pragma data_seg("shared")  
 #pragma data_seg("shared")  
-HWND hWnd = NULL;
+HWND g_hWnd = NULL;
 HHOOK g_Hook = NULL;
 HHOOK g_Hook = NULL;
 #pragma data_seg()  
 #pragma data_seg()  
 
 
@@ -15,25 +15,41 @@ HHOOK g_Hook = NULL;
 
 
 extern HINSTANCE g_Inst;
 extern HINSTANCE g_Inst;
 
 
-//鼠标钩子过程
-LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam)
+/*
+ *钩子过程函数,不做任何处理,因为目的仅仅是把dll注入到进程
+ **/
+LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
 {
 {
-	if (nCode < 0)
+	return CallNextHookEx(g_Hook, nCode, wParam, lParam);
+}
+
+/*
+ *对所有进程安装钩子,所有新开进程都会加载这个dll
+ **/
+BOOL InstallHook()
+{
+	if (g_Hook == NULL)
 	{
 	{
-		return CallNextHookEx(g_Hook, nCode, wParam, lParam);
+		g_Hook = SetWindowsHookEx(WH_CBT, CBTProc, g_Inst, 0);
+
+		if (g_Hook != NULL)
+		{
+			return TRUE;
+		}
 	}
 	}
 
 
-	return 1;
+	return FALSE;
 }
 }
 
 
-//安装鼠标钩子过程的函数
-void SetHook()
+void UninstallHook()
 {
 {
-	g_Hook = SetWindowsHookEx(WH_MOUSE, MouseProc, g_Inst, 0);
+	if (UnhookWindowsHookEx(g_Hook))
+	{
+		g_Hook = NULL;
+	}
 }
 }
 
 
-void SetHookOff()
+void SetHwnd(HWND hWnd)
 {
 {
-	UnhookWindowsHookEx(g_Hook);
+	g_hWnd = hWnd;
 }
 }
-

+ 10 - 2
zpzDll/zpzDll.h

@@ -1,4 +1,12 @@
 #pragma once
 #pragma once
 
 
-__declspec(dllexport) void SetHook();
-__declspec(dllexport) void SetHookOff();
+#ifdef HOOKAPI_EXPORTS
+#define HOOKAPI_API __declspec(dllexport)
+#else
+#define HOOKAPI_API __declspec(dllimport)
+#endif
+
+HOOKAPI_API BOOL InstallHook();
+HOOKAPI_API void UninstallHook();
+
+HOOKAPI_API void SetHwnd(HWND hWnd);

+ 10 - 1
zpzDll/zpzDll.vcxproj

@@ -90,14 +90,21 @@
       <WarningLevel>Level3</WarningLevel>
       <WarningLevel>Level3</WarningLevel>
       <Optimization>Disabled</Optimization>
       <Optimization>Disabled</Optimization>
       <SDLCheck>true</SDLCheck>
       <SDLCheck>true</SDLCheck>
-      <PreprocessorDefinitions>WIN32;_DEBUG;ZPZDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;_DEBUG;ZPZDLL_EXPORTS;_WINDOWS;_USRDLL;HOOKAPI_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
       <ConformanceMode>true</ConformanceMode>
       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+      <AdditionalIncludeDirectories>$(SolutionDir)include;</AdditionalIncludeDirectories>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
       <SubSystem>Windows</SubSystem>
       <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <GenerateDebugInformation>true</GenerateDebugInformation>
+      <AdditionalLibraryDirectories>$(SolutionDir)lib\debug</AdditionalLibraryDirectories>
+      <AdditionalDependencies>detours.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     </Link>
+    <PostBuildEvent>
+      <Command>copy $(TargetPath) $(SolutionDir)bin\$(Platform)\$(Configuration)\zhipuzi_pay_plugin\
+copy $(SolutionDir)temp\link\$(Platform)\$(Configuration)\$(ProjectName)\zpzDll.lib $(SolutionDir)lib\debug\</Command>
+    </PostBuildEvent>
   </ItemDefinitionGroup>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     <ClCompile>
     <ClCompile>
@@ -151,12 +158,14 @@
     </Link>
     </Link>
   </ItemDefinitionGroup>
   </ItemDefinitionGroup>
   <ItemGroup>
   <ItemGroup>
+    <ClInclude Include="Hook.h" />
     <ClInclude Include="stdafx.h" />
     <ClInclude Include="stdafx.h" />
     <ClInclude Include="targetver.h" />
     <ClInclude Include="targetver.h" />
     <ClInclude Include="zpzDll.h" />
     <ClInclude Include="zpzDll.h" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <ClCompile Include="dllmain.cpp" />
     <ClCompile Include="dllmain.cpp" />
+    <ClCompile Include="Hook.cpp" />
     <ClCompile Include="stdafx.cpp">
     <ClCompile Include="stdafx.cpp">
       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>

+ 6 - 0
zpzDll/zpzDll.vcxproj.filters

@@ -24,6 +24,9 @@
     <ClInclude Include="zpzDll.h">
     <ClInclude Include="zpzDll.h">
       <Filter>头文件</Filter>
       <Filter>头文件</Filter>
     </ClInclude>
     </ClInclude>
+    <ClInclude Include="Hook.h">
+      <Filter>头文件</Filter>
+    </ClInclude>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <ClCompile Include="stdafx.cpp">
     <ClCompile Include="stdafx.cpp">
@@ -35,5 +38,8 @@
     <ClCompile Include="dllmain.cpp">
     <ClCompile Include="dllmain.cpp">
       <Filter>源文件</Filter>
       <Filter>源文件</Filter>
     </ClCompile>
     </ClCompile>
+    <ClCompile Include="Hook.cpp">
+      <Filter>源文件</Filter>
+    </ClCompile>
   </ItemGroup>
   </ItemGroup>
 </Project>
 </Project>