Quellcode durchsuchen

'订单页增加ip字段'

lh vor 3 Jahren
Ursprung
Commit
a667170ab7

+ 2 - 0
src/Controllers/CompanyAuth/AppController.php

@@ -183,6 +183,7 @@ class AppController extends Controller
      * @apiSuccess {String}      wechat_name 关注公众号
      * @apiSuccess {String}      order_type 订单类型[普通充值、包年、包月、包季]
      * @apiSuccess {String}      push_msg_id 推送消息id,标记用[custom_开头是客服消息,template_开头是模板消息,下划线后是id]
+     * @apiSuccess {String}      ip 订单创建IP地址
      * @apiSuccessExample {json} Success-Response:
      *     HTTP/1.1 200 OK
      *   {
@@ -203,6 +204,7 @@ class AppController extends Controller
      *                   "keyword": "",
      *                   "user_charge_times": 1,
      *                   "push_msg_id": "custom_4041988",
+     *                   "ip": "36.18.52.247",
      *               }
      *           ],
      *           "meta": {

+ 1 - 0
src/Controllers/CompanyAuth/Transformers/OrderTransformer.php

@@ -26,6 +26,7 @@ class OrderTransformer
             'send_order_id' => $item->send_order_id,
             'send_order_name' => $item->send_order_name,
             'push_msg_id' => $item->inner_send_order_id,
+            'ip' => $item->create_ip,
             'order_type' => $this->getOrderType($item->order_type),
             'activity_name' => ($item->pay_merchant_source == 'MONTH') ? '包月' : ($item->activity ? (string) $item->activity->name : ''),
             'keyword' => $this->getKeyword($item),