# -*- coding: utf-8 -*-

from wechat_sdk.context.framework.django import DatabaseContextStore


class ControlCenter(object):
    """
    微信控制中心类
    """
    def __init__(self, official_account, wechat_instance):
        """
        控制中心初始化
        :param official_account: 公众号实例 (OfficialAccount)
        :param wechat_instance: 微信请求实例 (WechatBasic)
        """
        self.official_account = official_account
        self.wechat = wechat_instance
        self.context = DatabaseContextStore(self.wechat.get_message().source)

    @property
    def response(self):
        pass
@@ -18,16 +18,63 @@
 -8 -*-%0A%0A
+from django.http.response import HttpResponse%0A%0A
 from wec
@@ -134,16 +134,61 @@
 xtStore%0A
+from wechat_sdk.messages import EventMessage%0A
 %0A%0Aclass 
@@ -495,16 +495,25 @@
 _account
+  # %E5%85%AC%E4%BC%97%E5%8F%B7%E5%AE%9E%E4%BE%8B
 %0A       
@@ -542,16 +542,81 @@
 instance
+  # %E5%BE%AE%E4%BF%A1%E8%AF%B7%E6%B1%82%0A        self.message = self.wechat.get_message()  # %E5%BE%AE%E4%BF%A1%E6%B6%88%E6%81%AF
 %0A       
@@ -656,41 +656,35 @@
 ore(
-self.wechat.get_
+openid=self.
 message
-()
 .source)
 %0A%0A  
@@ -679,16 +679,27 @@
 .source)
+  # %E5%BE%AE%E4%BF%A1%E4%B8%8A%E4%B8%8B%E6%96%87%E5%AF%B9%E8%AF%9D
 %0A%0A    @p
@@ -742,8 +742,87 @@
     
-pass
+# %E4%BF%9D%E5%AD%98%E6%89%80%E6%9C%89%E4%B8%8A%E4%B8%8B%E6%96%87%E5%AF%B9%E8%AF%9D%E5%88%B0%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%AD%0A        self.context.save()%0A%0A        return HttpResponse('hello')%0A

add some comments