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

4

@@ -526,7 +526,7 @@ class PersonalcenterController extends WeChatBaseController{ @@ -526,7 +526,7 @@ class PersonalcenterController extends WeChatBaseController{
526 foreach ($student as $key => $val){ 526 foreach ($student as $key => $val){
527 if(!empty($get['startime']) && !empty($get['endtime'])){ 527 if(!empty($get['startime']) && !empty($get['endtime'])){
528 $startime = strtotime($get['startime']); 528 $startime = strtotime($get['startime']);
529 - $endtime = strtotime($get['endtime']); 529 + $endtime = strtotime($get['endtime'])+86400;
530 $data[$key] = Db::name('indent') -> where('uid',$val['uid']) -> where("state = 2 or state = 3 or state = 5") -> where("pay_time>=".$startime." and pay_time<=".$endtime) -> select() -> toArray(); 530 $data[$key] = Db::name('indent') -> where('uid',$val['uid']) -> where("state = 2 or state = 3 or state = 5") -> where("pay_time>=".$startime." and pay_time<=".$endtime) -> select() -> toArray();
531 }else{ 531 }else{
532 $data[$key] = Db::name('indent') -> where('uid',$val['uid']) -> where("state = 2 or state = 3 or state = 5") -> select() -> toArray(); 532 $data[$key] = Db::name('indent') -> where('uid',$val['uid']) -> where("state = 2 or state = 3 or state = 5") -> select() -> toArray();
@@ -544,7 +544,7 @@ class PersonalcenterController extends WeChatBaseController{ @@ -544,7 +544,7 @@ class PersonalcenterController extends WeChatBaseController{
544 foreach ($money_income as $key2 => $val2){ 544 foreach ($money_income as $key2 => $val2){
545 $money += $val2['money']; 545 $money += $val2['money'];
546 } 546 }
547 - $data[$key][$key1]['total_money'] = $money; 547 + $data[$key][$key1]['total_money'] = number_format($money,2);
548 $res[] = $data[$key][$key1]; 548 $res[] = $data[$key][$key1];
549 } 549 }
550 } 550 }
@@ -574,7 +574,7 @@ class PersonalcenterController extends WeChatBaseController{ @@ -574,7 +574,7 @@ class PersonalcenterController extends WeChatBaseController{
574 foreach ($tea_money_income as $key2 => $val2){ 574 foreach ($tea_money_income as $key2 => $val2){
575 $money += $val2['money']; 575 $money += $val2['money'];
576 } 576 }
577 - $teacher_data[$key]['total_money'] = $money; 577 + $teacher_data[$key]['total_money'] = number_format($money,2) ;
578 $teacher_data[$key]['indent_type'] = $val['indent_type']; 578 $teacher_data[$key]['indent_type'] = $val['indent_type'];
579 $teacher_data[$key]['create_time'] = $val['create_time']; 579 $teacher_data[$key]['create_time'] = $val['create_time'];
580 $my_res[] = $teacher_data[$key]; 580 $my_res[] = $teacher_data[$key];
@@ -2193,7 +2193,8 @@ body { @@ -2193,7 +2193,8 @@ body {
2193 } 2193 }
2194 2194
2195 .recordTxt { 2195 .recordTxt {
2196 - width: 4rem; 2196 + /*width: 4rem;*/
  2197 + width: 3.6rem;
2197 margin-left: 0.32rem; 2198 margin-left: 0.32rem;
2198 cursor: pointer; 2199 cursor: pointer;
2199 } 2200 }
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController @@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
204 */ 204 */
205 public function checkWeChatUserLogin() 205 public function checkWeChatUserLogin()
206 { 206 {
207 - /*$user = Db::name('user')->where('id',9)->find(); 207 + /*$user = Db::name('user')->where('id',13)->find();
208 cmf_update_current_user($user);*/ 208 cmf_update_current_user($user);*/
209 $userId = cmf_get_current_user_id(); 209 $userId = cmf_get_current_user_id();
210 if (empty($userId)) { 210 if (empty($userId)) {