最土整合9赢cps接口
2011-06-23 16:50 来源:www.chinab4c.com 作者:ecshop专家
1:修改最土数据库
alter table `order` add column cps_type varchar(128) default '';
alter table `order` add column cps_value varchar(128) default '';
2:新建立cps接口文件
require_once(dirname(__FILE__) . '/app.php');
$u_id = $_REQUEST['uid'];
if (!empty($u_id))
{
setcookie('9ycps',$u_id,time()+3600*24*30);
}
if($url == ''){
$url = 'index.php';
}
header("Location:$url");
3:team/buy.php
$9ycps = $_COOKIE['9ycps'];
if(isset($9ycps)){
Table::UpdateCache('order',$order_id,array('cps_type'=>'9ycps'));
Table::UpdateCache('order',$order_id,array('cps_value'=>$9ycps));
}
4:增加查询接口
require_once(dirname(__FILE__) . '/app.php');
$condition['cps_type'] = '9ycps';
$orders = DB::LimitQuery('order', array(
'condition' => $condition,
'order' => 'ORDER BY team_id DESC, id ASC',
));
$team_ids = Utility::GetColumn($orders, 'team_id');
$teams = Table::Fetch('team', $team_ids);
foreach($teams AS $tid=>$one){
team_state($one);
$teams[$tid] = $one;
}
最近更新
常用插件
- ecshop手机短信验证插件
ecshop手机短信验证插件,这个功能很实在,也十分的迫切需要,我们在二...
- ecshop打印快递发货单
ecshop打印快递发货单,这个问题是很常见的问题。在发货完成之后,有些...
- ecshop二次开发商品购买增
图片1香...
- 详细页面ecshop运费查询插
详细页面ecshop运费查询插件主要是方便用户,在提交订单之前,为了了...
- ecshop商品库存缺货发货量
ecshop商品库存缺货发货量数据倒出插件上海汽车租赁www.shrentbus.cn...



