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

7

... ... @@ -39,7 +39,7 @@ class OrderpageController extends WeChatBaseController{
Db::name('indent') -> update($indet_data_update);
}
$this -> assign('address',$address);
$this -> assign('address_id','');
$this -> assign('address_id',$address['id']);
}
}
... ...
... ... @@ -133,6 +133,7 @@ class PayController extends HomeBaseController
$data_money_income_salesman['uid'] = $salesman['uid'];
$data_money_income_salesman['indent_id'] = $order['id'];
Db::name('money_income') -> insert($data_money_income_salesman);
$money_salesman = 0;
}
Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman);
... ... @@ -148,6 +149,7 @@ class PayController extends HomeBaseController
$data_money_income_teacher['uid'] = $teacher['uid'];
$data_money_income_teacher['indent_id'] = $order['id'];
Db::name('money_income') -> insert($data_money_income_teacher);
$money_teacher = 0;
}
Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money_teacher);
}
... ... @@ -173,6 +175,7 @@ class PayController extends HomeBaseController
$data_money_income_salesman['uid'] = $salesman['uid'];
$data_money_income_salesman['indent_id'] = $order['id'];
Db::name('money_income') -> insert($data_money_income_salesman);
$money_salesman = 0;
}
Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman);
$money_teacher = 0;
... ... @@ -187,6 +190,7 @@ class PayController extends HomeBaseController
$data_money_income_teacher['uid'] = $data_user['uid'];
$data_money_income_teacher['indent_id'] = $order['id'];
Db::name('money_income') -> insert($data_money_income_teacher);
$money_teacher = 0;
}
Db::name('my_user') -> where('uid',$data_user['uid']) -> setInc('balance',$money_teacher);
}
... ... @@ -215,6 +219,7 @@ class PayController extends HomeBaseController
$money_income_teacher['uid'] = $teacher['uid'];
$money_income_teacher['indent_id'] = $order['id'];
Db::name('money_income') -> insert($money_income_teacher);
$money = 0;
}
//增加老师余额
Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money);
... ... @@ -250,6 +255,7 @@ class PayController extends HomeBaseController
$money_income_teacher['uid'] = $teacher;
$money_income_teacher['indent_id'] = $order['id'];
Db::name('money_income') -> insert($money_income_teacher);
$money = 0;
}
//增加老师余额
Db::name('my_user') -> where('uid',$teacher) -> setInc('balance',$money);
... ...