wupengfei 2 anni fa
parent
commit
44ecfd0f0e

+ 2 - 1
application/api/controller/Appointment.php

@@ -114,6 +114,7 @@ class Appointment extends Base
      * @return name:phone type:string default:--  desc:人联系
      * @return name:app_time type:string default:--  desc:预约时间
      * @return name:goods_name type:string default:--  desc:商品名称
+     * @return name:cover type:string default:--  desc:商品封面
      * @return name:goods_spec type:string default:--  desc:商品规格
      * @return name:goods_id type:int default:--  desc:商品id
      * @return name:spec_id type:int default:--  desc:规格id
@@ -125,7 +126,7 @@ class Appointment extends Base
         $where[] = ['a.user_id','=',$this->user_id];
         $where[] = ['a.is_deleted','=',0];
         if($status > -1) $where[] = ['status','=',$status];
-        $list = AppOrder::field('a.*,g.name goods_name,i.goods_spec')->alias('a')
+        $list = AppOrder::field('a.*,g.name goods_name,g.cover,i.goods_spec')->alias('a')
             ->leftJoin('StoreGoods g','a.goods_id = g.id')
             ->leftJoin('StoreGoodsItem i','a.spec_id = i.id')
             ->where($where)

+ 1 - 0
application/api/controller/Order.php

@@ -265,6 +265,7 @@ class Order extends Base
      * @return name:express_send_at type:string default:--  desc:发货时间
      * @return name:status type:int default:--  desc:订单状态(0待支付,1已支付(待发货),2已发货(待收货),3已收货(待评论)4已完成,8已退款,9取消)
      * @return name:create_at type:string default:--  desc:下单时间
+     * @return name:pay_at type:string default:--  desc:支付时间
      * @return name:remark type:string default:--  desc:订单备注
      * @return name:goods_num type:int default:--  desc:订单商品总数量
      * @return name:pro_name type:string default:--  desc:省名称(收货地址)

+ 0 - 1
config/apidoc.php

@@ -6,7 +6,6 @@ return [
     'copyright'=>'Powered By HG',
     //生成文档的控制器
     'controllers' => [
-        'api\\controller\\Address',
         'api\\controller\\Appointment',
         'api\\controller\\Area',
         'api\\controller\\Expedite',