|
@@ -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);
|