|
|
@@ -356,14 +356,6 @@ class Index extends Controller
|
|
|
$giftId = trim(Request::post("giftId"));
|
|
|
$type = trim(Request::post("type"));
|
|
|
|
|
|
- if ($type == 1) {
|
|
|
- $activity = Db::table('awards_activity')->where('begin_at', '<=', time())
|
|
|
- ->where('end_at', '>=', time())->find();
|
|
|
- if (empty($activity)) {
|
|
|
- return $this->response(5002, '活动末开始');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$orders = Db::table('awards_order')->where('uid', Safe::$user['uid'])->where('type', $type)->find();
|
|
|
if (empty($orders)) {
|
|
|
return $this->response(5001, '参数有误');
|