Authored by Rock Zhang

屏蔽元宵活动的错误信息

@@ -50,7 +50,9 @@ class YuanxiaoModel @@ -50,7 +50,9 @@ class YuanxiaoModel
50 */ 50 */
51 public static function getChouqianInfo($uid, $nickName, $birthday, $gender) 51 public static function getChouqianInfo($uid, $nickName, $birthday, $gender)
52 { 52 {
53 - $result = array('code' => 400, 'message' => '出错啦~'); 53 + $result = array('code' => 200, 'data' => array(
  54 + 'randomCode' => 'P3'
  55 + ));
54 56
55 do { 57 do {
56 if (empty($uid)) { 58 if (empty($uid)) {
@@ -73,7 +75,7 @@ class YuanxiaoModel @@ -73,7 +75,7 @@ class YuanxiaoModel
73 } 75 }
74 76
75 $chouqian = ActivityData::getYuanxiaoInfo($uid, $nickName, $birthday, $gender); 77 $chouqian = ActivityData::getYuanxiaoInfo($uid, $nickName, $birthday, $gender);
76 - if ($chouqian) { 78 + if ($chouqian && $chouqian['code'] == 200) {
77 $result = $chouqian; 79 $result = $chouqian;
78 } 80 }
79 } while (false); 81 } while (false);
@@ -10,7 +10,7 @@ use Plugin\Helpers; @@ -10,7 +10,7 @@ use Plugin\Helpers;
10 class YuanxiaoController extends HuodongAction 10 class YuanxiaoController extends HuodongAction
11 { 11 {
12 // const STATIC_FILE = 'http://localhost:2222/assets/1.1.3'; 12 // const STATIC_FILE = 'http://localhost:2222/assets/1.1.3';
13 - const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.1.3'; 13 + const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.1.5';
14 const ENCRYPT_KEY = 'iamgtskkwhoareyou'; 14 const ENCRYPT_KEY = 'iamgtskkwhoareyou';
15 15
16 /** 16 /**