Authored by Rock Zhang

屏蔽元宵活动的错误信息

... ... @@ -50,7 +50,9 @@ class YuanxiaoModel
*/
public static function getChouqianInfo($uid, $nickName, $birthday, $gender)
{
$result = array('code' => 400, 'message' => '出错啦~');
$result = array('code' => 200, 'data' => array(
'randomCode' => 'P3'
));
do {
if (empty($uid)) {
... ... @@ -73,7 +75,7 @@ class YuanxiaoModel
}
$chouqian = ActivityData::getYuanxiaoInfo($uid, $nickName, $birthday, $gender);
if ($chouqian) {
if ($chouqian && $chouqian['code'] == 200) {
$result = $chouqian;
}
} while (false);
... ...
... ... @@ -10,7 +10,7 @@ use Plugin\Helpers;
class YuanxiaoController extends HuodongAction
{
// const STATIC_FILE = 'http://localhost:2222/assets/1.1.3';
const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.1.3';
const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.1.5';
const ENCRYPT_KEY = 'iamgtskkwhoareyou';
/**
... ...