|
@@ -177,7 +177,7 @@ class Party extends Common
|
|
*/
|
|
*/
|
|
public function savePartyStatus() {
|
|
public function savePartyStatus() {
|
|
$party_id = $this->request->request('party_id');
|
|
$party_id = $this->request->request('party_id');
|
|
- $room_type = $this->request->request('room_type');;
|
|
+ $room_type = $this->request->request('room_type',1);;
|
|
if (!$party_id || !in_array($room_type,[1,2])) $this->error(__('Invalid parameters'));
|
|
if (!$party_id || !in_array($room_type,[1,2])) $this->error(__('Invalid parameters'));
|
|
$user_id = $this->auth->id;
|
|
$user_id = $this->auth->id;
|
|
$partyInfo = \app\common\model\Party::get($party_id);
|
|
$partyInfo = \app\common\model\Party::get($party_id);
|
|
@@ -574,7 +574,7 @@ class Party extends Common
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
+
|
|
|
|
|
|
} else {
|
|
} else {
|
|
$this->error("派对信息获取失败!");
|
|
$this->error("派对信息获取失败!");
|