游戏--添加支付方式渠道配置

master
zhanglingsheng 5 years ago
parent 6d34f317a1
commit 669baefe5e

@ -299,7 +299,7 @@ class GameController extends ThinkController
exit; exit;
} }
if (!preg_match("/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/i", $_POST['beta_url'])) { if (!preg_match("/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/i", $_POST['beta_url'])) {
return $this->error("请填写正确的Bata链接"); // return $this->error("请填写正确的Bata链接");
} }
/*if($_POST['apply_status']==0&&$_POST['game_status']==1){ /*if($_POST['apply_status']==0&&$_POST['game_status']==1){
$this->error('游戏未审核不允许显示');//游戏添加完成 $this->error('游戏未审核不允许显示');//游戏添加完成
@ -316,6 +316,7 @@ class GameController extends ThinkController
$game = D(self::model_name);//M('$this->$model_name','tab_'); $game = D(self::model_name);//M('$this->$model_name','tab_');
$_POST['discount'] == '' ? $_POST['discount'] = 10 : $_POST['discount']; $_POST['discount'] == '' ? $_POST['discount'] = 10 : $_POST['discount'];
$_POST['detail_content'] = $content; $_POST['detail_content'] = $content;
$_POST['pay_config'] = json_encode($_POST['pay_config']);
$res = $game->update(); $res = $game->update();
$id = $res["id"]; $id = $res["id"];
$sibling = D("Game")->find($id); $sibling = D("Game")->find($id);
@ -371,6 +372,7 @@ class GameController extends ThinkController
} else { } else {
$id || $this->error('id不能为空'); $id || $this->error('id不能为空');
$data = D(self::model_name)->detailback($id); $data = D(self::model_name)->detailback($id);
$data['pay_config'] = json_decode($data['pay_config'],true);
$data || $this->error('数据不存在!'); $data || $this->error('数据不存在!');
if (!empty($data['and_dow_address'])) { if (!empty($data['and_dow_address'])) {
$data['and_dow_address'] = ltrim($data['and_dow_address'], '.'); $data['and_dow_address'] = ltrim($data['and_dow_address'], '.');

@ -220,7 +220,7 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo" >游戏ICON</td> <td class="l noticeinfo" >游戏ICON</td>
<td class="r"> <td class="r">
<!-- <span class="table_btn table_upload"> <!-- <span class="table_btn table_upload">
<input type="file" id="upload_picture_icon"> <input type="file" id="upload_picture_icon">
<input type="hidden" name="icon" id="cover_id_icon" value="" /> <input type="hidden" name="icon" id="cover_id_icon" value="" />
<div class="upload-img-box"> <div class="upload-img-box">
@ -228,7 +228,7 @@
<div class="upload-pre-item"><img src=""/></div> <div class="upload-pre-item"><img src=""/></div>
</notempty> </notempty>
</div> </div>
</span>--> </span>-->
<span class="table_btn table_upload table_icon" style="float: none;"> <span class="table_btn table_upload table_icon" style="float: none;">
<input type="hidden" name="icon" value="{$data['icon']}" /> <input type="hidden" name="icon" value="{$data['icon']}" />
<div id="uploadImg" class="wu-example"> <div id="uploadImg" class="wu-example">
@ -249,7 +249,7 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo">游戏素材包</td> <td class="l noticeinfo">游戏素材包</td>
<td class="r"> <td class="r">
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<div id="uploader" class="wu-example"> <div id="uploader" class="wu-example">
<div class="btns"> <div class="btns">
<div id="picker" style="height:30px;">上传素材包</div> <div id="picker" style="height:30px;">上传素材包</div>
@ -259,7 +259,7 @@
</div> </div>
</div> </div>
<input type="hidden" id="file_url" name="material_url" value="{$data['material_url']}"/> <input type="hidden" id="file_url" name="material_url" value="{$data['material_url']}"/>
</span> </span>
<span class="notice-text">此处可上传该游戏的素材包,必须为压缩包形式,用于渠道后台下载推广</span> <span class="notice-text">此处可上传该游戏的素材包,必须为压缩包形式,用于渠道后台下载推广</span>
</td> </td>
@ -267,7 +267,7 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo">游戏推荐图</td> <td class="l noticeinfo">游戏推荐图</td>
<td class="r"> <td class="r">
<!-- <span class="table_btn table_upload"> <!-- <span class="table_btn table_upload">
<input type="file" id="upload_picture_cover"> <input type="file" id="upload_picture_cover">
<input type="hidden" name="cover" id="cover_id_cover" value="" /> <input type="hidden" name="cover" id="cover_id_cover" value="" />
<div class="upload-img-box"> <div class="upload-img-box">
@ -275,7 +275,7 @@
<div class="upload-pre-item"><img src=""/></div> <div class="upload-pre-item"><img src=""/></div>
</notempty> </notempty>
</div> </div>
</span>--> </span>-->
<span class="table_btn table_upload table_cover" style="float: none;"> <span class="table_btn table_upload table_cover" style="float: none;">
<input type="hidden" name="cover" value="{$data['cover']}" /> <input type="hidden" name="cover" value="{$data['cover']}" />
<div id="uploadImg" class="wu-example"> <div id="uploadImg" class="wu-example">
@ -296,7 +296,7 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo" >游戏截图</td> <td class="l noticeinfo" >游戏截图</td>
<td class="r"> <td class="r">
<!-- <span class="table_btn table_upload table_screenshot" style="float: none;"> <!-- <span class="table_btn table_upload table_screenshot" style="float: none;">
{:hook('UploadImages', array('name'=>'screenshot','value'=>$data['screenshot'],'flag'=>true))} {:hook('UploadImages', array('name'=>'screenshot','value'=>$data['screenshot'],'flag'=>true))}
</span>--> </span>-->
<span class="table_btn table_upload table_screenshot" style="float: none;"> <span class="table_btn table_upload table_screenshot" style="float: none;">
@ -407,18 +407,18 @@
</tr> </tr>
<tr> <tr>
<td class="l">超级签Token</td> <td class="l">超级签Token</td>
<td class="r" > <td class="r" >
<input type="text" class="txt " name="supersign_token" value="" placeholder="请输入超级签Token" > <input type="text" class="txt " name="supersign_token" value="" placeholder="请输入超级签Token" >
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l">超级签URL</td> <td class="l">超级签URL</td>
<td class="r" > <td class="r" >
<input type="text" class="txt " name="supersign_url" value="" placeholder="请输入超级签URL" > <input type="text" class="txt " name="supersign_url" value="" placeholder="请输入超级签URL" >
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
@ -490,6 +490,39 @@
<!-- <span class="notice-text" style="line-height:1.4;width:68%;">ios版游戏内的支付方式二选一默认是第三方支付。上架版选择第三方支付则为wap支付选择苹果内购则为苹果内购非上架版选择第三方支付则为wap支付选择苹果内购则为app支付。金猪支付下支付宝始终是app支付订单充值方式记录为支付宝其它皆为wap支付订单充值方式记录为金猪支付</span> --> <!-- <span class="notice-text" style="line-height:1.4;width:68%;">ios版游戏内的支付方式二选一默认是第三方支付。上架版选择第三方支付则为wap支付选择苹果内购则为苹果内购非上架版选择第三方支付则为wap支付选择苹果内购则为app支付。金猪支付下支付宝始终是app支付订单充值方式记录为支付宝其它皆为wap支付订单充值方式记录为金猪支付</span> -->
</td> </td>
</tr> </tr>
<tr>
<td class="l noticeinfo">支付宝</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_config[zfb]">
<option value="gf" >官方</option>
<option value="sq" >双乾</option>
</select>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">微信</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_config[wx]">
<option value="gf" selected="selected">官方</option>
</select>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">快捷支付</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_config[quick]">
<option value="sq" selected="selected">双乾</option>
</select>
</span>
</td>
</tr>
<tr> <tr>
<td class="l noticeinfo">是否开启强更</td> <td class="l noticeinfo">是否开启强更</td>
<td class="r table_radio table_radio2"> <td class="r table_radio table_radio2">
@ -612,7 +645,7 @@
分享图标 分享图标
</td> </td>
<td class="r" > <td class="r" >
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<input type="file" id="upload_dow_icon"> <input type="file" id="upload_dow_icon">
<input type="hidden" name="dow_icon" id="dow_id_icon" value="" /> <input type="hidden" name="dow_icon" id="dow_id_icon" value="" />
<div class="upload-img-box"> <div class="upload-img-box">
@ -620,7 +653,7 @@
<div class="upload-pre-item"><img src=""/></div> <div class="upload-pre-item"><img src=""/></div>
</notempty> </notempty>
</div> </div>
</span> </span>
<span class="notice-text">512*512px</span> <span class="notice-text">512*512px</span>
</td> </td>
</tr> </tr>
@ -629,7 +662,7 @@
分享背景图片 分享背景图片
</td> </td>
<td class="r" > <td class="r" >
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<input type="file" id="upload_picture_share"> <input type="file" id="upload_picture_share">
<input type="hidden" name="back_map" id="cover_share_game_cover" value="" /> <input type="hidden" name="back_map" id="cover_share_game_cover" value="" />
<div class="upload-img-box"> <div class="upload-img-box">
@ -637,7 +670,7 @@
<div class="upload-pre-item"><img src=""/></div> <div class="upload-pre-item"><img src=""/></div>
</notempty> </notempty>
</div> </div>
</span> </span>
<span class="notice-text">720*1280px及以上</span> <span class="notice-text">720*1280px及以上</span>
</td> </td>
</tr> </tr>

@ -226,17 +226,17 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo" >游戏ICON</td> <td class="l noticeinfo" >游戏ICON</td>
<td class="r"> <td class="r">
<!-- <span class="table_btn table_upload"> <!-- <span class="table_btn table_upload">
<input type="file" id="upload_picture_icon"> <input type="file" id="upload_picture_icon">
<input type="hidden" name="icon" id="cover_id_icon" value="{$data.icon}" /> <input type="hidden" name="icon" id="cover_id_icon" value="{$data.icon}" />
<div class="upload-img-box"> <div class="upload-img-box">
<notempty name="data['icon']"> <notempty name="data['icon']">
<div class="upload-pre-item"> <div class="upload-pre-item">
<span class="placeholder-graphic placeholder-graphic_icon"><img src="{$data['icon']|get_cover='path'}"/></span> <span class="placeholder-graphic placeholder-graphic_icon"><img src="{$data['icon']|get_cover='path'}"/></span>
</div> </div>
</notempty> </notempty>
</div> </div>
</span>--> </span>-->
<span class="table_btn table_upload table_icon" style="float: none;"> <span class="table_btn table_upload table_icon" style="float: none;">
<input type="hidden" name="icon" value="{$data['icon']}" /> <input type="hidden" name="icon" value="{$data['icon']}" />
<div id="uploadImg" class="wu-example"> <div id="uploadImg" class="wu-example">
@ -257,7 +257,7 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo">游戏素材包</td> <td class="l noticeinfo">游戏素材包</td>
<td class="r"> <td class="r">
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<div id="uploader" class="wu-example"> <div id="uploader" class="wu-example">
<div class="btns"> <div class="btns">
<div id="picker" style="width: auto;float: left;margin-right: 20px;">上传素材包</div> <div id="picker" style="width: auto;float: left;margin-right: 20px;">上传素材包</div>
@ -276,21 +276,21 @@
</div> </div>
</div> </div>
<input type="hidden" id="file_url" name="material_url" value="{$data['material_url']}"/> <input type="hidden" id="file_url" name="material_url" value="{$data['material_url']}"/>
</span> </span>
<span class="notice-text">此处可上传该游戏的素材包,必须为压缩包形式,用于渠道后台下载推广</span> <span class="notice-text">此处可上传该游戏的素材包,必须为压缩包形式,用于渠道后台下载推广</span>
</td> </td>
</tr> </tr>
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo">游戏推荐图</td> <td class="l noticeinfo">游戏推荐图</td>
<td class="r"> <td class="r">
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<!-- <input type="file" id="upload_picture_cover"> <!-- <input type="file" id="upload_picture_cover">
<input type="hidden" name="cover" id="cover_id_cover" value="{$data.cover}" /> <input type="hidden" name="cover" id="cover_id_cover" value="{$data.cover}" />
<div class="upload-img-box"> <div class="upload-img-box">
<notempty name="data['cover']"> <notempty name="data['cover']">
<div class="upload-pre-item"> <div class="upload-pre-item">
<span class="placeholder-graphic placeholder-graphic_ad"><img src="{$data['cover']|get_cover='path'}"/></span> <span class="placeholder-graphic placeholder-graphic_ad"><img src="{$data['cover']|get_cover='path'}"/></span>
</div> </div>
</notempty>--> </notempty>-->
<span class="table_btn table_upload table_cover" style="float: none;"> <span class="table_btn table_upload table_cover" style="float: none;">
@ -308,7 +308,7 @@
</div> </div>
</span> </span>
</div> </div>
</span> </span>
<span class="notice-text">470*350px用于官网首屏推荐游戏位展示</span> <span class="notice-text">470*350px用于官网首屏推荐游戏位展示</span>
</td> </td>
</tr> </tr>
@ -359,7 +359,7 @@
<tr class="picbox"> <tr class="picbox">
<td class="l noticeinfo">落地页视频</td> <td class="l noticeinfo">落地页视频</td>
<td class="r"> <td class="r">
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<div id="uploaderVideo" class="wu-example"> <div id="uploaderVideo" class="wu-example">
<div class="btns"> <div class="btns">
<div id="pickerVideo" style="width: auto;float: left;margin-right: 20px;">上传视频</div> <div id="pickerVideo" style="width: auto;float: left;margin-right: 20px;">上传视频</div>
@ -379,7 +379,7 @@
</div> </div>
</div> </div>
<input type="hidden" id="video_url" name="flooring_page_video" value="{$data['flooring_page_video']}"/> <input type="hidden" id="video_url" name="flooring_page_video" value="{$data['flooring_page_video']}"/>
</span> </span>
<span class="notice-text">视频大小不能超过20M支持格式mp4,3gp,wmv,asf,asx,mov,m4v,avi,flv,qlv</span> <span class="notice-text">视频大小不能超过20M支持格式mp4,3gp,wmv,asf,asx,mov,m4v,avi,flv,qlv</span>
</td> </td>
</tr> </tr>
@ -554,18 +554,18 @@
<td class="r"><input type="text" class="txt2" id="game_address_size" value="{$data['game_address_size']}" name="game_address_size" placeholder="请输入第三方原包大小"> </td> <td class="r"><input type="text" class="txt2" id="game_address_size" value="{$data['game_address_size']}" name="game_address_size" placeholder="请输入第三方原包大小"> </td>
</tr> </tr>
<tr> <tr>
<td class="l">超级签Token</td> <td class="l">超级签Token</td>
<td class="r" > <td class="r" >
<input type="text" class="txt " name="supersign_token" value="{$data['supersign_token']}" placeholder="请输入超级签Token" > <input type="text" class="txt " name="supersign_token" value="{$data['supersign_token']}" placeholder="请输入超级签Token" >
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l">超级签URL</td> <td class="l">超级签URL</td>
<td class="r" > <td class="r" >
<input type="text" class="txt " name="supersign_url" value="{$data['supersign_url']}" placeholder="请输入超级签URL" > <input type="text" class="txt " name="supersign_url" value="{$data['supersign_url']}" placeholder="请输入超级签URL" >
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l">超级签状态:</td> <td class="l">超级签状态:</td>
@ -663,6 +663,39 @@
<!-- <span class="notice-text" style="line-height:1.4;width:68%;">ios版游戏内的支付方式二选一默认是第三方支付。上架版选择第三方支付则为wap支付选择苹果内购则为苹果内购非上架版选择第三方支付则为wap支付选择苹果内购则为app支付。金猪支付下支付宝始终是app支付订单充值方式记录为支付宝其它皆为wap支付订单充值方式记录为金猪支付</span> --> <!-- <span class="notice-text" style="line-height:1.4;width:68%;">ios版游戏内的支付方式二选一默认是第三方支付。上架版选择第三方支付则为wap支付选择苹果内购则为苹果内购非上架版选择第三方支付则为wap支付选择苹果内购则为app支付。金猪支付下支付宝始终是app支付订单充值方式记录为支付宝其它皆为wap支付订单充值方式记录为金猪支付</span> -->
</td> </td>
</tr> </tr>
<tr>
<td class="l noticeinfo">支付宝</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_config[zfb]">
<option value="gf" <?php echo $data['pay_config']['zfb'] == 'gf' ? "selected" : ''; ?>>官方</option>
<option value="sq" <?php echo $data['pay_config']['zfb'] == 'sq' ? "selected" : ''; ?>>双乾</option>
</select>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">微信</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_config[wx]">
<option value="gf" selected="selected">官方</option>
</select>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">快捷支付</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_config[quick]">
<option value="sq" selected="selected">双乾</option>
</select>
</span>
</td>
</tr>
<tr> <tr>
<td class="l noticeinfo">是否开启强更</td> <td class="l noticeinfo">是否开启强更</td>
<td class="r table_radio table_radio2"> <td class="r table_radio table_radio2">
@ -786,7 +819,7 @@
分享游戏图标 分享游戏图标
</td> </td>
<td class="r"> <td class="r">
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<input type="file" id="upload_dow_icon"> <input type="file" id="upload_dow_icon">
<input type="hidden" name="dow_icon" id="dow_id_icon" value="{$data.dow_icon}" /> <input type="hidden" name="dow_icon" id="dow_id_icon" value="{$data.dow_icon}" />
<div class="upload-img-box"> <div class="upload-img-box">
@ -794,7 +827,7 @@
<div class="upload-pre-item"><img src="{$data['dow_icon']|get_cover='path'}"/></div> <div class="upload-pre-item"><img src="{$data['dow_icon']|get_cover='path'}"/></div>
</notempty> </notempty>
</div> </div>
</span> </span>
<span class="notice-text">512*512px</span> <span class="notice-text">512*512px</span>
</td> </td>
</tr> </tr>
@ -806,7 +839,7 @@
分享背景图片 分享背景图片
</td> </td>
<td class="r"> <td class="r">
<span class="table_btn table_upload"> <span class="table_btn table_upload">
<input type="file" id="upload_dow_detail"> <input type="file" id="upload_dow_detail">
<input type="hidden" name="back_map" id="back_map_detail" value="{$data.back_map}" /> <input type="hidden" name="back_map" id="back_map_detail" value="{$data.back_map}" />
<div class="upload-img-box"> <div class="upload-img-box">

@ -912,3 +912,7 @@ ALTER TABLE `tab_game`
ADD COLUMN `beta_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Beta版状态'; ADD COLUMN `beta_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Beta版状态';
ALTER TABLE `tab_game` ALTER TABLE `tab_game`
ADD COLUMN `beta_url` varchar(150) NOT NULL DEFAULT '' COMMENT 'Beta链接'; ADD COLUMN `beta_url` varchar(150) NOT NULL DEFAULT '' COMMENT 'Beta链接';
-- 游戏支付方式渠道配置
ALTER TABLE `tab_game`
ADD COLUMN `pay_config` varchar(255) DEFAULT NULL COMMENT '支付渠道 wx 微信 zfb 支付宝 quick 快捷 (gf 官方 sq 双乾';
Loading…
Cancel
Save