...
|
...
|
@@ -120,6 +120,7 @@ class PayController extends HomeBaseController |
|
|
$data_money_income_salesman['book_thumbnail'] = $val['thumbnail'];
|
|
|
$data_money_income_salesman['book_num'] = $val['number'];
|
|
|
$data_money_income_salesman['uid'] = $salesman['uid'];
|
|
|
$data_money_income_salesman['indent_id'] = $order['id'];
|
|
|
Db::name('money_income') -> insert($data_money_income_salesman);
|
|
|
}
|
|
|
Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman);
|
...
|
...
|
@@ -134,6 +135,7 @@ class PayController extends HomeBaseController |
|
|
$data_money_income_teacher['book_thumbnail'] = $val['thumbnail'];
|
|
|
$data_money_income_teacher['book_num'] = $val['number'];
|
|
|
$data_money_income_teacher['uid'] = $teacher['uid'];
|
|
|
$data_money_income_teacher['indent_id'] = $order['id'];
|
|
|
Db::name('money_income') -> insert($data_money_income_teacher);
|
|
|
}
|
|
|
Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money_teacher);
|
...
|
...
|
@@ -158,6 +160,7 @@ class PayController extends HomeBaseController |
|
|
$data_money_income_salesman['book_thumbnail'] = $val['thumbnail'];
|
|
|
$data_money_income_salesman['book_num'] = $val['number'];
|
|
|
$data_money_income_salesman['uid'] = $salesman['uid'];
|
|
|
$data_money_income_salesman['indent_id'] = $order['id'];
|
|
|
Db::name('money_income') -> insert($data_money_income_salesman);
|
|
|
}
|
|
|
Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman);
|
...
|
...
|
@@ -171,6 +174,7 @@ class PayController extends HomeBaseController |
|
|
$data_money_income_teacher['book_thumbnail'] = $val['thumbnail'];
|
|
|
$data_money_income_teacher['book_num'] = $val['number'];
|
|
|
$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);
|
|
|
}
|
|
|
Db::name('my_user') -> where('uid',$data_user['uid']) -> setInc('balance',$money_teacher);
|
...
|
...
|
@@ -198,6 +202,7 @@ class PayController extends HomeBaseController |
|
|
$money_income_teacher['book_thumbnail'] = $val['thumbnail'];
|
|
|
$money_income_teacher['book_num'] = $val['number'];
|
|
|
$money_income_teacher['uid'] = $teacher['uid'];
|
|
|
$money_income_teacher['indent_id'] = $order['id'];
|
|
|
Db::name('money_income') -> insert($money_income_teacher);
|
|
|
}
|
|
|
//增加老师余额
|
...
|
...
|
@@ -228,6 +233,7 @@ class PayController extends HomeBaseController |
|
|
$money_income_teacher['book_thumbnail'] = $val['thumbnail'];
|
|
|
$money_income_teacher['book_num'] = $val['number'];
|
|
|
$money_income_teacher['uid'] = $teacher;
|
|
|
$money_income_teacher['indent_id'] = $order['id'];
|
|
|
Db::name('money_income') -> insert($money_income_teacher);
|
|
|
}
|
|
|
//增加老师余额
|
...
|
...
|
|