|
@@ -16,13 +16,19 @@ class UserTax extends Api
|
|
|
* @ApiParams (name=limit,dexcription=分页)
|
|
|
*/
|
|
|
public function list(){
|
|
|
- /*$user=$this->auth->getUser();
|
|
|
+ $user=$this->auth->getUser();
|
|
|
$tax=$user->tax()
|
|
|
+ ->with(['orders'])
|
|
|
->order('id','desc')
|
|
|
- ->paginate(input('limit',15));*/
|
|
|
- $tax=new Orders;
|
|
|
- $tax->taxApi=true;
|
|
|
- $tax->users();
|
|
|
- //$this->success('',$tax);
|
|
|
+ ->paginate(input('limit',15));
|
|
|
+
|
|
|
+ $newList=[];
|
|
|
+ foreach ($tax->items() as $item){
|
|
|
+ $order=[
|
|
|
+ 'order_no'=>$item['orders']['order_no']??'',
|
|
|
+ 'create_time'=>$item['orders']['create_time']??'',
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ $this->success('',$tax);
|
|
|
}
|
|
|
}
|