소스 검색

支付事件

cyzhao 3 년 전
부모
커밋
cdefb42a8c
2개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Gameserver/Amfphp/model/User/Enum_EventType.php
  2. 9 0
      Gameserver/Amfphp/process/EventProc/NormalEventProc.php

+ 5 - 0
Gameserver/Amfphp/model/User/Enum_EventType.php

@@ -114,4 +114,9 @@ class Enum_EventType {
      * 言灵升级
      */
     const YanLingTuPo = 'YanLingTuPo';
+    
+    /*
+     * 支付成功
+     */
+    const PaySuccess = 'PaySuccess';
 }

+ 9 - 0
Gameserver/Amfphp/process/EventProc/NormalEventProc.php

@@ -195,4 +195,13 @@ class NormalEventProc {
         Resp::AddEvent(Enum_EventType::YanLingTuPo, $arg1, $arg2);
     }
     
+    /**
+     * 支付成功
+     * @param type $arg1
+     * @param type $arg2
+     */
+    public static function OnPaySuccess() {
+        Resp::AddEvent(Enum_EventType::PaySuccess, null, null);
+    }
+    
 }