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

7

@@ -39,7 +39,7 @@ class OrderpageController extends WeChatBaseController{ @@ -39,7 +39,7 @@ class OrderpageController extends WeChatBaseController{
39 Db::name('indent') -> update($indet_data_update); 39 Db::name('indent') -> update($indet_data_update);
40 } 40 }
41 $this -> assign('address',$address); 41 $this -> assign('address',$address);
42 - $this -> assign('address_id',''); 42 + $this -> assign('address_id',$address['id']);
43 } 43 }
44 } 44 }
45 45
@@ -133,6 +133,7 @@ class PayController extends HomeBaseController @@ -133,6 +133,7 @@ class PayController extends HomeBaseController
133 $data_money_income_salesman['uid'] = $salesman['uid']; 133 $data_money_income_salesman['uid'] = $salesman['uid'];
134 $data_money_income_salesman['indent_id'] = $order['id']; 134 $data_money_income_salesman['indent_id'] = $order['id'];
135 Db::name('money_income') -> insert($data_money_income_salesman); 135 Db::name('money_income') -> insert($data_money_income_salesman);
  136 + $money_salesman = 0;
136 } 137 }
137 Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman); 138 Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman);
138 139
@@ -148,6 +149,7 @@ class PayController extends HomeBaseController @@ -148,6 +149,7 @@ class PayController extends HomeBaseController
148 $data_money_income_teacher['uid'] = $teacher['uid']; 149 $data_money_income_teacher['uid'] = $teacher['uid'];
149 $data_money_income_teacher['indent_id'] = $order['id']; 150 $data_money_income_teacher['indent_id'] = $order['id'];
150 Db::name('money_income') -> insert($data_money_income_teacher); 151 Db::name('money_income') -> insert($data_money_income_teacher);
  152 + $money_teacher = 0;
151 } 153 }
152 Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money_teacher); 154 Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money_teacher);
153 } 155 }
@@ -173,6 +175,7 @@ class PayController extends HomeBaseController @@ -173,6 +175,7 @@ class PayController extends HomeBaseController
173 $data_money_income_salesman['uid'] = $salesman['uid']; 175 $data_money_income_salesman['uid'] = $salesman['uid'];
174 $data_money_income_salesman['indent_id'] = $order['id']; 176 $data_money_income_salesman['indent_id'] = $order['id'];
175 Db::name('money_income') -> insert($data_money_income_salesman); 177 Db::name('money_income') -> insert($data_money_income_salesman);
  178 + $money_salesman = 0;
176 } 179 }
177 Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman); 180 Db::name('my_user') -> where('uid',$salesman['uid']) -> setInc('balance',$money_salesman);
178 $money_teacher = 0; 181 $money_teacher = 0;
@@ -187,6 +190,7 @@ class PayController extends HomeBaseController @@ -187,6 +190,7 @@ class PayController extends HomeBaseController
187 $data_money_income_teacher['uid'] = $data_user['uid']; 190 $data_money_income_teacher['uid'] = $data_user['uid'];
188 $data_money_income_teacher['indent_id'] = $order['id']; 191 $data_money_income_teacher['indent_id'] = $order['id'];
189 Db::name('money_income') -> insert($data_money_income_teacher); 192 Db::name('money_income') -> insert($data_money_income_teacher);
  193 + $money_teacher = 0;
190 } 194 }
191 Db::name('my_user') -> where('uid',$data_user['uid']) -> setInc('balance',$money_teacher); 195 Db::name('my_user') -> where('uid',$data_user['uid']) -> setInc('balance',$money_teacher);
192 } 196 }
@@ -215,6 +219,7 @@ class PayController extends HomeBaseController @@ -215,6 +219,7 @@ class PayController extends HomeBaseController
215 $money_income_teacher['uid'] = $teacher['uid']; 219 $money_income_teacher['uid'] = $teacher['uid'];
216 $money_income_teacher['indent_id'] = $order['id']; 220 $money_income_teacher['indent_id'] = $order['id'];
217 Db::name('money_income') -> insert($money_income_teacher); 221 Db::name('money_income') -> insert($money_income_teacher);
  222 + $money = 0;
218 } 223 }
219 //增加老师余额 224 //增加老师余额
220 Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money); 225 Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money);
@@ -250,6 +255,7 @@ class PayController extends HomeBaseController @@ -250,6 +255,7 @@ class PayController extends HomeBaseController
250 $money_income_teacher['uid'] = $teacher; 255 $money_income_teacher['uid'] = $teacher;
251 $money_income_teacher['indent_id'] = $order['id']; 256 $money_income_teacher['indent_id'] = $order['id'];
252 Db::name('money_income') -> insert($money_income_teacher); 257 Db::name('money_income') -> insert($money_income_teacher);
  258 + $money = 0;
253 } 259 }
254 //增加老师余额 260 //增加老师余额
255 Db::name('my_user') -> where('uid',$teacher) -> setInc('balance',$money); 261 Db::name('my_user') -> where('uid',$teacher) -> setInc('balance',$money);