因為攜帶的寵物 不是排在第一位 因此做出此修改
開啟 wog_act_pet.php 寫:function pet_index() 內
尋找
- 代碼: 選擇全部
$p=$DB_site->query_first("select * from wog_pet where pe_p_id=".$user_id." ".$sql." and pe_st in (0,2) LIMIT 1");
覆蓋為
- 代碼: 選擇全部
$p=$DB_site->query_first("select * from wog_pet where pe_p_id=".$user_id." ".$sql." and pe_st in (0,2) ORDER BY pe_st LIMIT 1");
尋找
- 代碼: 選擇全部
$pe_list=$DB_site->query("select pe_name,pe_id from wog_pet where pe_p_id=".$user_id." and pe_st in (0,2)");
覆蓋為
- 代碼: 選擇全部
$pe_list=$DB_site->query("select pe_name,pe_id from wog_pet where pe_p_id=".$user_id." and pe_st in (0,2) ORDER BY pe_st");
儲存關閉 如有 BUG 請指出 謝謝