add-script-up_money_json
This commit is contained in:
@@ -162,13 +162,27 @@ class Xzcall extends HD_Controller
|
||||
$date = date("Y-m-d H:i:s.x", $usec);
|
||||
return $mescdate = str_replace('x', $sec, $date);
|
||||
}
|
||||
|
||||
public function robot(){
|
||||
//更新订单金融服务费
|
||||
public function up_srv_money(){
|
||||
$o_id = $this->input->get('id');
|
||||
if($o_id){
|
||||
$this->load->library('qyrobot');
|
||||
$robot_res = $this->qyrobot->deposit_notify($o_id);
|
||||
var_dump($robot_res);
|
||||
$show = $this->input->get('show');
|
||||
$money = $this->input->get('money');
|
||||
$row = $this->orders_model->get(['id'=>$o_id]);
|
||||
if(!$row){
|
||||
return false;
|
||||
}
|
||||
if($show){
|
||||
print_r($row);
|
||||
}
|
||||
if($money){
|
||||
$money_json = json_decode($row['money_json'],true);
|
||||
$money_json['price_finance'] = 0;
|
||||
$up_data = [
|
||||
'money_json' => json_encode($money_json,JSON_UNESCAPED_UNICODE)
|
||||
];
|
||||
$res = $this->orders_model->update($up_data,['id'=>$row['id']]);
|
||||
var_dump($res);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,6 @@ class Cusorder extends Wxapp{
|
||||
'price_insure' => $car_row['price_insure'],
|
||||
'price_fine' => $car_row['price_fine'],
|
||||
];
|
||||
!$payway && $money_json['price_finance'] = 1000;
|
||||
if(!$payway){
|
||||
$orders_entity = new Orders_entity();
|
||||
$money_json['price_finance'] = $orders_entity::PRICE_FINANCE;
|
||||
|
||||
Reference in New Issue
Block a user