正在显示
2 个修改的文件
包含
57 行增加
和
0 行删除
@@ -100,6 +100,63 @@ class Order extends Api | @@ -100,6 +100,63 @@ class Order extends Api | ||
100 | } | 100 | } |
101 | 101 | ||
102 | /** | 102 | /** |
103 | + * @ApiTitle (订单详情) | ||
104 | + * @ApiSummary (订单详情) | ||
105 | + * @ApiMethod (POST) | ||
106 | + * @ApiRoute (/api/order/orderdetail) | ||
107 | + * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") | ||
108 | + * @ApiParams (name="order_id", type="int", required=true, description="订单ID") | ||
109 | + * @ApiReturn({ | ||
110 | + "code": 1, | ||
111 | + "msg": "SUCCESS", | ||
112 | + "time": "1553839125", | ||
113 | + "data": { | ||
114 | + "id"://订单id, | ||
115 | + "user_id"://学生ID | ||
116 | + "teacher_id"://老师ID | ||
117 | + "territory_id"://购买的擅长领域ID | ||
118 | + "is_use"://是否使用优惠劵(0不使用1使用 | ||
119 | + "coupon_id"://优惠劵ID | ||
120 | + "money"://金额 | ||
121 | + "status"://订单状态 | ||
122 | + "num"://订单号 | ||
123 | + "business"://所属行业 | ||
124 | + "address"://经营地区/职能类别 | ||
125 | + "product"://产品/职位等级 | ||
126 | + "scale"://公司规模/下属人数 | ||
127 | + "content"://问题描述 | ||
128 | + "commission"://佣金比例 | ||
129 | + "finish_status"://完成状态(1进行中2已完成3售后 | ||
130 | + "order_status"://订单审核(1通过2未通过 | ||
131 | + "is_summarize"://是否总结过(1是2否 | ||
132 | + "is_complaint"://是否投诉(1是2否3已处理 | ||
133 | + "is_chargeback"://是否退单(1是2否 | ||
134 | + "expirationtime"://到期时间 | ||
135 | + "paytime"://支付时间 | ||
136 | + "chat_id"://融云群聊ID | ||
137 | + "chat_name"://群组名称 | ||
138 | + "transaction_id"://微信支付订单号 | ||
139 | + } | ||
140 | + }) | ||
141 | + */ | ||
142 | + public function orderdetail() | ||
143 | + { | ||
144 | + $user_id = $this->getUserId(); | ||
145 | + $order_id = $this->request->param('order_id'); | ||
146 | + if(empty($order_id)){ | ||
147 | + $this->error('缺少必要参数'); | ||
148 | + } | ||
149 | + $data = Db::name('order')->where('id',$order_id)->find(); | ||
150 | + if(!empty($data['paytime'])){ | ||
151 | + $data['paytime'] = date('Y-m-d H:i',$data['paytime']); | ||
152 | + } | ||
153 | + if(!empty($data['expirationtime'])){ | ||
154 | + $data['expirationtime'] = date('Y-m-d H:i',$data['expirationtime']); | ||
155 | + } | ||
156 | + $this->success('success',$data); | ||
157 | + } | ||
158 | + | ||
159 | + /** | ||
103 | * @ApiTitle (续约订单) | 160 | * @ApiTitle (续约订单) |
104 | * @ApiSummary (续约订单) | 161 | * @ApiSummary (续约订单) |
105 | * @ApiMethod (POST) | 162 | * @ApiMethod (POST) |
此 diff 太大无法显示。
-
请 注册 或 登录 后发表评论