|
|
@@ -182,7 +182,6 @@ class User extends ApiController
|
|
|
*/
|
|
|
public function withdrawLog()
|
|
|
{
|
|
|
- // 1. 传入用户位置
|
|
|
$param = $this->request->param();
|
|
|
$limit = isset($param['pageSize'])? $param['pageSize'] : 20;
|
|
|
|
|
|
@@ -191,7 +190,6 @@ class User extends ApiController
|
|
|
return IResponse::failure('用户不存在,或已被冻结');
|
|
|
}
|
|
|
|
|
|
- // 经纬度升序
|
|
|
$lists = model('common/TaxiUsersWithdraw')
|
|
|
->where(['taxi_uid' => $taxiUser['id']])
|
|
|
->order(['created_at' => 'desc'])
|
|
|
@@ -286,7 +284,29 @@ class User extends ApiController
|
|
|
return IResponse::success($list,'上传成功');
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 升级记录
|
|
|
+ * @return mixed
|
|
|
+ * @throws \Lettered\Support\Exceptions\FailedException
|
|
|
+ */
|
|
|
+ public function levelLog()
|
|
|
+ {
|
|
|
+ $param = $this->request->param();
|
|
|
+ $limit = isset($param['pageSize'])? $param['pageSize'] : 20;
|
|
|
|
|
|
+ $lists = UserPaymentOrder::where(['user_id' => $this->auth->user()['id'],'type'=>30])
|
|
|
+ ->order(['created_at' => 'desc'])
|
|
|
+ ->limit((($param['page'] - 1) * $limit) . "," . $limit)
|
|
|
+ ->select();
|
|
|
+
|
|
|
+ return IResponse::success($lists,'获取成功');
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 升级订单
|
|
|
+ * @return mixed|\think\response\Json
|
|
|
+ * @throws \Lettered\Support\Exceptions\FailedException
|
|
|
+ */
|
|
|
public function doLevel()
|
|
|
{
|
|
|
// 接收数据
|
|
|
@@ -324,7 +344,7 @@ class User extends ApiController
|
|
|
'order_no'=> get_order_no(),
|
|
|
'source_id'=> $levelData['id'],
|
|
|
'price'=> $levelData['price'],
|
|
|
- 'remark'=> '司机升级订单',
|
|
|
+ 'remark'=> '司机付费【'.$levelData['price'].'】升级到'.$levelData['title'],
|
|
|
'status'=> 1,
|
|
|
'created_at'=> time(),
|
|
|
'updated_at'=> time(),
|