Ver código fonte

抢礼物,推送测试

lizhen_gitee 1 ano atrás
pai
commit
46e63aa2ca
1 arquivos alterados com 16 adições e 1 exclusões
  1. 16 1
      application/api/controller/Grabgift.php

+ 16 - 1
application/api/controller/Grabgift.php

@@ -197,7 +197,7 @@ class Grabgift extends Api
             'nickname'    => $this->auth->nickname,
             'user_id'     => $this->auth->id,
             'avatar'      => localpath_to_netpath($this->auth->avatar),
-            'gift_name'    => $gift_name,
+            'gift_name'   => $gift_name,
             'winer_nickname'    => $winer_nickname,
         ];
 
@@ -222,6 +222,21 @@ class Grabgift extends Api
         $notice->sendGrabgift($result);
     }
 
+    public function test(){
+        $result = [
+            'grab_id'     => 1,
+            'count'       => 4,
+            'is_finish'   => 0,
+            'seat_number' => 5,
+            'nickname'    => '加入者昵称',
+            'user_id'     => 1,
+            'avatar'      => '/1.jpg',
+            'gift_name'   => '礼物名',
+            'winer_nickname'    => '中奖者昵称',
+        ];
+        $this->grabgift_notice($result);
+    }
+