zhangguidong 2 years ago
parent
commit
1c37c8efe2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/api/controller/User.php

+ 2 - 0
application/api/controller/User.php

@@ -433,6 +433,8 @@ class User extends Api
         $yutang_model = new \app\admin\model\Yutang();
         $list = $shoucang_model->alias('s')->join('method m','m.id=s.method_id')->where('s.user_id',$this->auth->id)->order('s.id','DESC')->field('m.*')->paginate();
         foreach ($list as &$value){
+            $rebate = rebate($value['type'],$value['moshi']);
+            $value['lijianjin']= $rebate['reduction'];
             $value['price'] = $time_model->where('m_id',$value['id'])->where('type',1)->order('price','asc')->value('price');;
             $value['pingfen']=$yutang_model->where('id',$value['yutang_id'])->value('pingjie');
         }