新增结算包名

master
chenzhi 4 years ago
parent 3ff79ce6c1
commit 4460f8e7cf

@ -281,6 +281,9 @@ class GameController extends ThinkController
} else { } else {
$_POST['display_site'] = ''; $_POST['display_site'] = '';
} }
$relation_game_id = $_REQUEST['relation_game_id'];
$inv = D(self::model_name)->where("relation_game_id = '{$relation_game_id}'")->find();
$_POST['select_package_name'] = $inv['select_package_name'];
$pinyin = new \Think\Pinyin(); $pinyin = new \Think\Pinyin();
@ -431,7 +434,7 @@ class GameController extends ThinkController
$phone['game_type_name'] = $sibling['game_type_name']; $phone['game_type_name'] = $sibling['game_type_name'];
$phone['category'] = $sibling['category']; $phone['category'] = $sibling['category'];
$phone['recommend_status'] = $sibling['recommend_status']; $phone['recommend_status'] = $sibling['recommend_status'];
//$phone['game_status']= $sibling['game_status']; $phone['select_package_name']= $_POST['select_package_name'];
$phone['sort'] = $sibling['sort']; $phone['sort'] = $sibling['sort'];
$phone['game_score'] = $sibling['game_score']; $phone['game_score'] = $sibling['game_score'];
$phone['features'] = $sibling['features']; $phone['features'] = $sibling['features'];

@ -150,6 +150,22 @@
<span class="notice-text">设置游戏的推荐类型,更改此游戏在网站所属的推荐板块;</span> <span class="notice-text">设置游戏的推荐类型,更改此游戏在网站所属的推荐板块;</span>
</td> </td>
</tr> </tr>
<tr>
<td class="l noticeinfo">结算包名</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label class="inp_radio">
<input type="radio" class="inp_radio" value="0" name="select_package_name" checked="checked"> 原包名
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="select_package_name" > 现包名
</label>
</span>
<span class="notice-text">用于上游结算时显示的游戏名称</span>
</td>
</tr>
<tr> <tr>
<td class="l">游戏排序:</td> <td class="l">游戏排序:</td>
<td class="r"> <td class="r">

@ -175,6 +175,22 @@
<span class="notice-text">设置游戏的推荐类型,更改此游戏在网站所属的推荐板块;</span> <span class="notice-text">设置游戏的推荐类型,更改此游戏在网站所属的推荐板块;</span>
</td> </td>
</tr> </tr>
<tr>
<td class="l noticeinfo">推荐状态</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="select_package_name" <eq name="data['select_package_name']" value="0">checked="checked"</eq>> 原包名
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="select_package_name" <eq name="data['select_package_name']" value="1">checked="checked"</eq>> 现包名
</label>
</span>
<span class="notice-text">用于上游结算时显示的游戏名称,修改后将同步关联游戏</span>
</td>
</tr>
<tr> <tr>
<td class="l">游戏排序:</td> <td class="l">游戏排序:</td>
<td class="r"> <td class="r">

@ -2237,4 +2237,8 @@ CREATE TABLE `tab_payment_member` (
INSERT INTO `tab_payment_member` (`id`, `real_name`, `mobile`, `last_login_time`) VALUES ('1', '胡歌', '18959188422', '0') INSERT INTO `tab_payment_member` (`id`, `real_name`, `mobile`, `last_login_time`) VALUES ('1', '胡歌', '18959188422', '0')
--chenzhi
ALTER TABLE `tab_game`
ADD COLUMN `select_package_name` tinyint(2) NOT NULL DEFAULT 0 COMMENT '结算包名 0:原包名 1:现包名' AFTER `original_package_name`;

Loading…
Cancel
Save