超级签新增支付方式

master
chenzhi 5 years ago
parent 08a97a2f9f
commit 1ccbd03a0f

@ -60,7 +60,7 @@ class MendController extends ThinkController {
} }
$data = M("Mend","tab_") $data = M("Mend","tab_")
->field("user_account,promote_account,promote_account_to,order_time,create_time,op_account,remark") ->field("user_account,promote_account,pay_amount,promote_account_to,order_time,create_time,op_account,remark")
->where($map) ->where($map)
->order("create_time desc"); ->order("create_time desc");
@ -75,7 +75,7 @@ class MendController extends ThinkController {
$data[$key]['order_time'] = date("Y-m-d H:i:s",$value['order_time']); $data[$key]['order_time'] = date("Y-m-d H:i:s",$value['order_time']);
} }
if($export) db2csv($data,"推广员管理_推广补链_补链记录",["玩家账号","补链前渠道","补链后渠道","切分时间","补链时间","操作人员","备注"]); if($export) db2csv($data,"推广员管理_推广补链_补链记录",["玩家账号","补链前渠道","补链前归属金额","补链后渠道","切分时间","补链时间","操作人员","备注"]);
if(IS_POST){ if(IS_POST){
$page = set_pagination($_REQUEST['row_count'],$row); $page = set_pagination($_REQUEST['row_count'],$row);

@ -0,0 +1,42 @@
<?php
namespace Admin\Controller;
/**
* 新功能之后还未来的急跑的脚本初始化数据
* @author chenzhi
*/
class OldCountController extends \Think\Controller
{
//超级签订单新增识别微信或者支付宝2019-12-11
public function gameSupersignPaywayInit()
{
$map = array(
"pay_status"=>1,
"pay_way"=>0
);
$GameSupersign = M("GameSupersign","tab_");
$dbres = $GameSupersign->field("id,trade_id")->where($map)->select();
$countdb = count($dbres);
if($countdb < 1){
die("No initialization required");
}
foreach ($dbres as $key => $value) {
$savedata = array(
"id"=>$value['id']
);
$tmp = (int)substr($value['trade_id'],0,4);
if($tmp > 3000){
$savedata['pay_way'] = 2; //微信
}else{
$savedata['pay_way'] = 1;//支付宝
}
$tres = $GameSupersign->save($savedata);
if($tres === false){
die("DB ERROR");
}
}
die("init ok");
}
}

@ -70,6 +70,7 @@
</th> </th>
<th>玩家账号</th> <th>玩家账号</th>
<th>补链前渠道</th> <th>补链前渠道</th>
<th>补链前归属金额</th>
<th>补链后渠道</th> <th>补链后渠道</th>
<th style="width:400px;">备注</th> <th style="width:400px;">备注</th>
<th>切分时间</th> <th>切分时间</th>
@ -88,6 +89,7 @@
<td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td> <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
<td>{$data['user_account']}</td> <td>{$data['user_account']}</td>
<td>{$data['promote_account']}</td> <td>{$data['promote_account']}</td>
<td>{$data['pay_amount']}</td>
<td>{$data['promote_account_to']}</td> <td>{$data['promote_account_to']}</td>
<td class="js-pop" style="max-width: 400px;padding: 0 20px;"> <td class="js-pop" style="max-width: 400px;padding: 0 20px;">
<a href="javascript:" title="点击查看" class="remarkView" info="{$data['remark']}">{$data['remark']}</a> <a href="javascript:" title="点击查看" class="remarkView" info="{$data['remark']}">{$data['remark']}</a>
@ -129,6 +131,7 @@
<td><input class="ids" type="checkbox" value="${item['id']}" name="ids[]"></td> <td><input class="ids" type="checkbox" value="${item['id']}" name="ids[]"></td>
<td>${item['user_account']}</td> <td>${item['user_account']}</td>
<td>${item['promote_account']}</td> <td>${item['promote_account']}</td>
<td>${item['pay_amount']}</td>
<td>${item['promote_account_to']}</td> <td>${item['promote_account_to']}</td>
<td class="js-pop" style="max-width: 400px;padding: 0 20px;"> <td class="js-pop" style="max-width: 400px;padding: 0 20px;">
<a href="javascript:" title="点击查看" class="remarkView" info="${item['remark']}">${item['remark']}</a> <a href="javascript:" title="点击查看" class="remarkView" info="${item['remark']}">${item['remark']}</a>

@ -247,6 +247,7 @@ class BaseController extends Controller {
))->save(array( ))->save(array(
'trade_id' => $data['trade_id'], 'trade_id' => $data['trade_id'],
'pay_status' => 1, 'pay_status' => 1,
'pay_way'=>$data['pay_way'],
'pay_time' => time() 'pay_time' => time()
)); ));
if (!$r) return -1; if (!$r) return -1;

@ -69,7 +69,8 @@ class Notify2Controller extends BaseController
case 'SS': // 超级签 case 'SS': // 超级签
$this->supersign_pay_notify(array( $this->supersign_pay_notify(array(
'trade_id' => $order_info['trade_no'], 'trade_id' => $order_info['trade_no'],
'order_id' => $order_info['out_trade_no'] 'order_id' => $order_info['out_trade_no'],
'pay_way'=>1
)); ));
break; break;
default: default:

@ -221,7 +221,8 @@ class NotifyController extends BaseController
$out_trade_no = $Swiftpass->resHandler->getParameter('out_trade_no'); $out_trade_no = $Swiftpass->resHandler->getParameter('out_trade_no');
$this->supersign_pay_notify(array( $this->supersign_pay_notify(array(
'trade_id' => $trade_no, 'trade_id' => $trade_no,
'order_id' => $out_trade_no 'order_id' => $out_trade_no,
'pay_way'=>2
)); ));
echo 'success'; echo 'success';
}else{ }else{

@ -696,3 +696,6 @@ ALTER TABLE `tab_pay_info` ADD COLUMN `promote_id` int(11) NOT NULL DEFAULT '0'
ALTER TABLE `tab_pay_info` ADD COLUMN `game_player_id` int(11) DEFAULT '0' COMMENT '玩家游戏内id'; ALTER TABLE `tab_pay_info` ADD COLUMN `game_player_id` int(11) DEFAULT '0' COMMENT '玩家游戏内id';
ALTER TABLE `tab_pay_info` ADD COLUMN `sdk_version` tinyint(2) DEFAULT '1' COMMENT '区别sdk版本1安卓 2苹果 '; ALTER TABLE `tab_pay_info` ADD COLUMN `sdk_version` tinyint(2) DEFAULT '1' COMMENT '区别sdk版本1安卓 2苹果 ';
ALTER TABLE `tab_pay_info` ADD COLUMN `promote_account` varchar(30) DEFAULT '' COMMENT '推广员账号'; ALTER TABLE `tab_pay_info` ADD COLUMN `promote_account` varchar(30) DEFAULT '' COMMENT '推广员账号';
--2019-12-11 chenzhi
ALTER TABLE `tab_game_supersign` ADD COLUMN `pay_way` tinyint(2) DEFAULT '0' COMMENT '充值方式(0:未知,1:支付宝,2:微信)' AFTER `pay_time`;
Loading…
Cancel
Save