作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

... ... @@ -125,12 +125,12 @@ class OrderpageController extends WeChatBaseController{
if(empty($address)){
$this -> assign('address',4);
}else{
$address_arr = explode(',',$address['']);
$address_arr = explode(',',$address['detailed']);
$address['detailed'] = $address_arr[0].$address_arr[1];
$indet_data = Db::name('indent') -> where("id",$indent_id['indet_id']) -> find();
if($indet_data['state'] == 4){
$indet_data_update['id'] = $indent_id['indet_id'];
$indet_data_update['indent_address'] = $address['detailed'];
$indet_data_update['indent_address'] = $address['id'];
$indet_data_update['name'] = $address['name'];
$indet_data_update['phone'] = $address['phone'];
Db::name('indent') -> update($indet_data_update);
... ...
... ... @@ -163,7 +163,7 @@ class PayController extends HomeBaseController
$data_money_income_teacher['uid'] = $data_user['uid'];
Db::name('money_income') -> insert($data_money_income_teacher);
}
Db::name('my_user') -> where('uid',$data_user['uid']) -> setInc('balance',$money_salesman);
Db::name('my_user') -> where('uid',$data_user['uid']) -> setInc('balance',$money_teacher);
}
}else if($order['indent_type'] == 2){
//如果是业务员订单
... ...