0.88
This commit is contained in:
parent
eef2aaa6d3
commit
209cc825ec
@ -190,6 +190,7 @@ class Gh extends Api
|
||||
$da['order_status'] = 1;
|
||||
$da['pay_status'] = 1;
|
||||
$da['pay_way'] = 1;
|
||||
$da['pay_time'] = time();
|
||||
if($abutment['from'] == "trade"){
|
||||
Db::name("order")
|
||||
->where("trade_id",$abutment['order_id'])
|
||||
|
||||
@ -131,8 +131,10 @@ class Goods extends Api
|
||||
return JsonServer::error($error);
|
||||
}
|
||||
if($act_id!=1){
|
||||
$goodsDetail['market_price'] = round($goodsDetail['min_price'],2);
|
||||
$goodsDetail['min_price'] = round(0.88*$goodsDetail['min_price'],2);
|
||||
foreach ($goodsDetail['goods_item'] as $k => $v) {
|
||||
$goodsDetail['goods_item'][$k]['market_price'] = round($v['price'], 2);
|
||||
$goodsDetail['goods_item'][$k]['price'] = round($v['price'] * 0.88, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -60,7 +60,8 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlu5coHWBbtrz8DyX0VbPWiJZlAsofwZ99pZq
|
||||
return JsonServer::success('开始支付',$r);
|
||||
}
|
||||
public function checkOrder($post){
|
||||
$user_id = $this->user_id;
|
||||
// $user_id = $this->user_id;
|
||||
$user_id = $post['user_id'];
|
||||
$gtpay_msg = Db::name("gt_pay")->where("id",$post['id'])->find();
|
||||
$data = [
|
||||
'agetId'=>$this->agetId,
|
||||
|
||||
@ -526,6 +526,7 @@ class GoodsLogic extends Logic
|
||||
->page($get['page_no'], $get['page_size'])
|
||||
->select();
|
||||
foreach ($list as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
$set_price_type = 0;
|
||||
@ -661,6 +662,7 @@ class GoodsLogic extends Logic
|
||||
->page($page_no, $page_size)
|
||||
->select();
|
||||
foreach ($list as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
$set_price_type = 0;
|
||||
@ -1062,6 +1064,7 @@ class GoodsLogic extends Logic
|
||||
|
||||
$result = array_merge($list, $goods);
|
||||
foreach ($result as $k => &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
if (isset($v['image'])) {
|
||||
$v['image'] = UrlServer::getFileUrl($v['image']);
|
||||
@ -1097,6 +1100,7 @@ class GoodsLogic extends Logic
|
||||
$result = array_merge($list, $goods);
|
||||
|
||||
foreach ($result as $k => &$v) {
|
||||
$result[$k]['market_price'] = round($v['min_price'],2);
|
||||
$result[$k]['min_price'] = round(0.88*$v['min_price'],2);
|
||||
if (isset($v['image'])) {
|
||||
$v['image'] = UrlServer::getFileUrl($v['image']);
|
||||
|
||||
@ -329,6 +329,7 @@ class IndexLogic extends Logic
|
||||
->select()
|
||||
->toArray();
|
||||
foreach ($hots as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
return $hots;
|
||||
@ -367,6 +368,7 @@ class IndexLogic extends Logic
|
||||
->select()
|
||||
->toArray();
|
||||
foreach ($news as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
return $news;
|
||||
@ -664,6 +666,7 @@ class IndexLogic extends Logic
|
||||
->select()
|
||||
->toArray();
|
||||
foreach ($lists as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
$set_price_type = 0;
|
||||
@ -769,6 +772,7 @@ class IndexLogic extends Logic
|
||||
->select()
|
||||
->toArray();
|
||||
foreach ($lists as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
}
|
||||
$set_price_type = 0;
|
||||
@ -1105,6 +1109,7 @@ class IndexLogic extends Logic
|
||||
}
|
||||
$result = array_merge($hot_list, $order_goods);
|
||||
foreach ($result as &$v) {
|
||||
$v['market_price'] = round($v['min_price'],2);
|
||||
$v['min_price'] = round(0.88*$v['min_price'],2);
|
||||
if (isset($v['image'])) {
|
||||
$v['image'] = UrlServer::getFileUrl($v['image']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user