Skip to content

Commit 6335f47

Browse files
drswingheadkitech
drswinghead
authored andcommitted
readd wechat code base, qrcode link broadcast and simple process.
1 parent ac83fae commit 6335f47

16 files changed

+1283
-787
lines changed

archlinux/txagent.conf

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838

3939
<allow send_path="/io/qtc/roundtable/IRCAgent"/>
4040

41-
<!-- for tx roundtable.WXAgent -->
42-
<allow own="io.qtc.roundtable.WXAgent"/>
41+
<!-- for tx roundtable.WechatAgent -->
42+
<allow own="io.qtc.roundtable.WechatAgent"/>
4343

44-
<allow send_destination="io.qtc.roundtable.WXAgent"/>
45-
<allow receive_sender="io.qtc.roundtable.WXAgent"/>
44+
<allow send_destination="io.qtc.roundtable.WechatAgent"/>
45+
<allow receive_sender="io.qtc.roundtable.WechatAgent"/>
4646

47-
<allow send_path="/io/qtc/roundtable/WXAgent"/>
47+
<allow send_path="/io/qtc/roundtable/WechatAgent"/>
4848

4949
<!-- for tx weixin -->
5050
<allow own="io.qtc.wxagent"/>

rtsvd.ini

+9-3
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,26 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
1919
[supervisorctl]
2020
serverurl=unix://./supervisor.sock ; use a unix:// URL for a unix socket
2121

22+
[program:roundtable]
23+
command=python3 -m wxagent.mainrt start irc
24+
autostart=true
25+
autorestart=false
26+
redirect_stderr=true
27+
2228
[program:irc]
2329
command=python3 -m wxagent.mainrt start roundtable
2430
autostart=true
2531
autorestart=false
2632
redirect_stderr=true
2733

28-
[program:roundtable]
29-
command=python3 -m wxagent.mainrt start irc
34+
[program:tox]
35+
command=python3 -m wxagent.mainrt start tox
3036
autostart=true
3137
autorestart=false
3238
redirect_stderr=true
3339

3440
[program:tox]
35-
command=python3 -m wxagent.mainrt start tox
41+
command=python3 -m wxagent.mainrt start wechat
3642
autostart=true
3743
autorestart=false
3844
redirect_stderr=true

wxagent/baseagent.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def init_dbus_service(self):
8282
if bret is False:
8383
err = sysbus.lastError()
8484
qDebug('error: {}, {}'.format(err.name(), err.message()))
85-
# exit()
85+
qDebug('service: {}'.format(self.service_name))
86+
raise 'wtf'
87+
exit()
8688
qDebug(str(sysbus.baseService()))
8789
qDebug(str(sysbus.name()))
8890
iface = sysbus.interface()
@@ -148,7 +150,8 @@ def ifaceForName(self, name):
148150

149151
@pyqtSlot(QDBusMessage)
150152
def onDBusNewMessage(self, msg):
151-
print(msg, msg.service(), ',', msg.path(), ',', msg.interface(), ',', msg.arguments())
153+
qDebug('hehreere')
154+
# print(msg, msg.service(), ',', msg.path(), ',', msg.interface(), ',', msg.arguments())
152155
self.messageHandler(msg)
153156
return
154157

0 commit comments

Comments
 (0)