edit-api-edit_order
This commit is contained in:
@@ -199,7 +199,7 @@ class CusorderV2 extends Wxapp{
|
||||
$o_id = $this->orders_model->add($data);
|
||||
if($o_id){
|
||||
//意向金订单
|
||||
$userinfo = $this->app_liche_users_model->get(['mobile'=>$mobile],'id');
|
||||
$userinfo = $this->app_liche_users_model->get(['mobile'=>$data['mobile']],'id');
|
||||
if($inten_money){
|
||||
$this->orders_v2_entity->c_intention($o_id,$userinfo['id'],$inten_money);
|
||||
}
|
||||
|
||||
@@ -444,7 +444,7 @@ class Orders_v2_entity{
|
||||
$this->ci->app_liche_orders_model->update($up_data,['o_id'=>$row['id']]);
|
||||
//删除未支付订单
|
||||
$this->ci->app_liche_orders_model->delete(['o_id'=>$row['id'],'status'=>0,'pid!='=>0]);
|
||||
$userinfo = $this->ci->app_liche_users_model->get(['mobile'=>$new_data['mobile']],'id');
|
||||
$userinfo = $this->ci->app_liche_users_model->get(['mobile'=>$row['mobile']],'id');
|
||||
if(!$this->ci->app_liche_orders_model->count(['o_id'=>$row['id'],'type'=>1,'status'=>1])){ //不存在订单订单
|
||||
$this->add_book_order($row['id'],$userinfo['id']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user