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

54

... ... @@ -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);
}
//增加老师余额
... ...
... ... @@ -413,8 +413,11 @@ class PersonalcenterController extends WeChatBaseController{
$student_user = Db::name('my_user') -> where('pid',$my_user['id']) -> select();
foreach ($student_user as $key => $val){
$indent[] = Db::name('indent') -> where('uid',$val['uid']) -> select();
foreach ($indent as $key => $val){
/*$indent[$key]['indent_goods'] = Db::name() -> where() -> */
}
}
dump($indent);die;
}elseif ($my_user['status'] == 2){
... ...