|
|
@@ -483,6 +483,11 @@ class Index extends Controller
|
|
|
*/
|
|
|
public function getLuckDraw()
|
|
|
{
|
|
|
+ $userInfo = Db::table('awards_user_info')->where('uid', Safe::$user['uid'])->find();
|
|
|
+ if ($userInfo >= 30) {
|
|
|
+ return $this->response(5002, '抽奖次数已达上线~');
|
|
|
+ }
|
|
|
+
|
|
|
$orders = Db::table('awards_order')->where('uid', Safe::$user['uid'])->where('type', 1)->find();
|
|
|
$isWinAward = 0;
|
|
|
if ($orders) {
|