version('v1',[
'namespace'=>'App\Http\Controllers'
],function ($api){
$api->get('GetOrderDetail','OrdertestController@GetOrderDetail');//获取活动时间
/*----------------登录相关---------------*/
$api->get('/login/judge_login','LoginController@judge_login');
$api->get('/wechat_mess','UserController@wechat_mess');
$api->any('/login/login','LoginController@login');
$api->get('/GetPay/GetPay','PaymentController@GetPay');
$api->get('/express/GetExpressInnage','OrdertestController@GetExpressInnage');
$api->get('/express/Innage','OrdertestController@Innage');
$api->get('/login/wechat_login','LoginController@wechat_login');
$api->get('/login/register','LoginController@register');
$api->get('user/submit_user','UserController@submit_user');
$api->get('/login/get_user_openid','LoginController@wxLogin');
$api->post('/login/upload_avatar_img','LoginController@uploadAvatarImg');
$api->get('/minilogin/wxLogin','MiniLoginController@wxLogin');
$api->post('/minilogin/login','MiniLoginController@login');
$api->post('/miniSub/refund_notify','MiniSubController@refundNotify');
$api->get('/login/get_openid','LoginController@wx_Login');
$api->get('/GetGoodNum','GoodtestController@GetGoodNum');
$api->get('/enid','LoginController@enid');
$api->get('/GetUserTeamLists','TeamController@GetUserTeamLists');
$api->get('/fangwei/auth','LoginController@wx_auth');
$api->group(['middleware' => 'jwt.auth'], function($api) {
$api->get('AddQrCode','IndexController@AddQrCode');//文章列表
$api->get('AddQrCodes','IndexController@AddQrCodes');//文章列表
/*--------------------个人信息开始-------------------*/
$api->get('user/getinfo','UserController@getinfo');
$api->get('user/per_data','UserController@per_data');
$api->get('user/confirm_level','UserController@confirm_level');
// $api->get('user/submit_user','UserController@submit_user');
$api->get('user/user_cert','AuditController@user_cert');
/*----------------授权书相关------------*/
$api->get('/user/auth_code','UserController@auth_code');
$api->post('/user/auth_share','UserController@auth_share');
/*-----------------换绑手机号-----------*/
$api->get('user/send_code','UserController@send_code');
$api->get('user/change_num','UserController@change_num');
/*-----------------地址管理------------*/
$api->get('user/show_address','UserController@show_address');
$api->post('user/add_address','UserController@add_address');
$api->get('user/search_address','UserController@search_address');
$api->get('user/del_address','UserController@del_address');
$api->post('user/update_address','UserController@update_address');
$api->post('user/update_nickname','UserController@update_nickname');
$api->get('user/auth_info','UserController@authInfo');
/*--------------------个人信息结束-------------------*/
/**------------邀请相关-----------***/
// $api->get('user/audit','AuditController@recom_sure');
$api->get('team/examine','AuditController@recom_audit');
$api->get('team/examine_list','AuditController@recom_sure_record');//注册审核列表
// $api->get('user/recom_audit_record','AuditController@recom_sure_record');
// $api->get('user/agent_audit','AuditController@agent_audit');
// $api->get('user/agent_audit_show','AuditController@agent_sure_show');
// $api->get('user/agent_audit_record','AuditController@agent_sure_record');
/*-------团队--------*/
$api->get('team/card_data','TeamController@card_data');
$api->get('team/new_per','TeamController@new_per');
$api->get('team/list','TeamController@level_count');
$api->get('team/add_list','TeamController@add_list');
$api->get('team/money','TeamController@money');
$api->get('team/invite','TeamController@invite');
$api->get('team/invite_code','TeamController@invite_code');
$api->group(['prefix'=>'team'],function ($api){
$api->get('GetUserTeamList','TeamController@GetUserTeamList');
$api->get('GetUserTeamLevelDetail','TeamController@GetUserTeamLevelDetail');
$api->get('SearchUserTeamLevelDetail','TeamController@SearchUserTeamLevelDetail');
$api->get('GetTeamList','TeamController@GetTeamList');
$api->get('GetNewUserDetail','TeamController@GetNewUserDetail');
$api->get('StoreNoOpen','TeamController@StoreNoOpen');
});
/**
* 商品
*/
$api->get('/goods/list','GoodsController@goods_list');
$api->get('/goods/detail','GoodsController@goods_detail');
$api->get('app/chart','BasicController@charts');
$api->get('app/index','BasicController@index');
$api->get('app/message','BasicController@message');
$api->get('app/message_read','BasicController@message_read');
$api->get('app/updata','BasicController@version');
/*
* 订单相关
* */
$api->post('order/submit_order','OrderController@submit_order');//提交
$api->get('order/order_complete','OrderController@order_complete');//收货
$api->get('order/order_sure_pay','OrderController@order_sure_pay');//收款
$api->get('order/order_del','OrderController@order_del');//删除
$api->get('order/detail','OrderController@order_detail');//订单详情
$api->get('order/my_order','OrderController@my_order');//我的订单
$api->get('order/order_lower','OrderController@order_lower');//我的订单
$api->get('order/order_turn','OrderController@order_turn');//转单订单
$api->post('order/forward','OrderController@turn_order');//转单订单
$api->get('inventory/record','OrderController@single_record');//转单订单
// $api->get('inventory/get_user','OrderController@get_user');//转单订单
/**----财富相关------**/
$api->get('income/income','TreasureController@income');
$api->get('income/detail','TreasureController@detail');
/**----APP相关-----**/
$api->get('app/feedback','BasicController@question');
$api->get('app/GetVRLink','BasicController@GetVRLink');
// $api->get('/index','IndexController@index');
$api->get('article/show_list','ArticleController@show_list');
$api->get('article/like','ArticleController@like');
$api->get('article/collection','ArticleController@collection');
$api->get('article/mycollection','ArticleController@mycollection');
$api->post('/user/update_pass','UserController@update_pass');
$api->post('/submit_order','OrdertestController@submit_order');//提交订单
$api->get('/order/get_gift','OrdertestController@get_data');//获取赠品信息
$api->get('/order/sure_order','OrdertestController@sure_order');//提交订单
$api->get('/order_detail','OrdertestController@order_detail');//订单详情
$api->get('/order_list','OrdertestController@order_list');//订单列表
$api->get('/get_log','OrdertestController@get_log');//订单操作日志
$api->get('/pay_order','OrdertestController@pay_order');//订单支付
$api->get('/destory','OrdertestController@destory');//订单修改和作废
$api->get('/user/user_pay_log','PayController@user_pay_log');//账户金额日志
$api->get('/order/get_gift_info','OrdertestController@get_gift');//获取订单赠品信息
$api->get('/order/get_order_expresses','OrdertestController@get_order_expresses');//订单物流
$api->get('/order/get_express','OrdertestController@get_express');//订单物流
$api->get('/order/order_rank','OrdertestController@order_rank');
$api->get('/order/order_data','OrdertestController@order_data');//订单统计
$api->get('/order/search_order','OrdertestController@search_order');//订单统计
$api->get('/inventory/get_user','OrdertestController@get_user');//订单统计
$api->get('order/GetOrderDetail','OrdertestController@GetOrderDetail');//合并详情
/**礼品统计**/
$api->get('order/type_count','OrdertestController@type_count');//下级信息礼品详情
$api->post('order/type_submit','OrdertestController@type_submit');//礼品提交
$api->get('get_activity','OrdertestController@get_activity');//获取活动时间
$api->get('get_activity_list','OrdertestController@get_activity_list');//获取活动时间
$api->get('GetUserHonor','OrdertestController@GetUserHonor');//获取活动时间
$api->group(['prefix'=>'order'], function ($api){
$api->get('look_good','StorageController@look_good');
$api->get('good_detail','StorageController@good_detail');
});
$api->get('/wechat/wechat','BasicController@wechat');
$api->get('/logout','UserController@logout');
//微店
$api->post('store/set_agree','StoreController@setAgree');
$api->post('store/share_store','StoreController@shareStore');
$api->post('store/upload_cert_img','StoreController@uploadCertImg');
$api->post('store/upload_face_img','StoreController@uploadFaceImg');
$api->get('store/get_store_info','StoreController@getStoreInfo');
$api->get('store/get_agent_info','StoreController@getAgentInfo');
$api->post('store/edit_store_info','StoreController@editStoreInfo');
$api->post('store/edit_store_address','StoreController@editStoreAddress');
$api->post('store/upload_store_img','StoreController@uploadStoreImg');
$api->post('store/cert_store','StoreController@certStore');
$api->get('store/get_user_data_info','StoreController@getUserDataInfo');
$api->get('store/get_user_info','StoreController@getUserInfo');
$api->get('store/get_all_address','StoreController@getAllAddress');
$api->get('store/get_address','StoreController@getAddress');
$api->post('store/add_address','StoreController@addAddress');
$api->post('store/update_address','StoreController@updateAddress');
$api->post('store/destroy_address','StoreController@destroyAddress');
$api->post('store/set_default_address','StoreController@setDefaultAddress');
$api->post('store/submit_order_info','StoreController@submitOrderInfo');
$api->post('store/edit_order_remark','StoreController@editOrderRemark');
$api->post('store/share_order_info','StoreController@shareOrderInfo');
$api->get('store/get_order_status_num','StoreController@getOrderStatusNum');
$api->get('store/get_order_lists','StoreController@getOrderLists');
$api->get('store/get_order_list','StoreController@getOrderList');
$api->get('store/get_order_list1','StoreController@getOrderList1');
$api->get('store/get_refund_order_detail','StoreController@getRefundOrderDetail');
$api->post('store/add_user','StoreController@addUser');
$api->post('store/set_vip','StoreController@setVip');
$api->post('store/cancel_vip','StoreController@cancelVip');
$api->get('store/get_user','StoreController@getUser');
$api->post('store/edit_user','StoreController@editUser');
$api->get('store/get_address_info','StoreController@getAddressInfo');
$api->post('store/submit_refund_order','StoreController@submitRefundOrder');
$api->post('store/upload_refund_order_img','StoreController@uploadRefundOrderImg');
$api->get('store/get_origin_order_info','StoreController@getOriginOrderInfo');
$api->get('store/cancel_refund_order','StoreController@cancelRefundOrder');
$api->get('store/get_order_info','StoreController@getOrderInfo');
$api->get('store/get_order_no_info','StoreController@getOrderNoInfo');
$api->post('store/add_comment','StoreController@addComment');
$api->get('store/get_comment','StoreController@getComment');
$api->get('store/get_express_code','StoreController@getExpressCode');
$api->get('store/get_express_company','StoreController@getExpressCompany');
$api->post('store/add_order_express_no','StoreController@addOrderExpressNo');
$api->get('store/get_order_express','StoreController@getOrderExpress');
$api->get('store/get_more_buy','StoreController@getMoreBuy');
$api->get('store/get_more_user_info','StoreController@getMoreUserInfo');
$api->get('store/get_user_all_order','StoreController@getUserAllOrder');
$api->get('store/get_more_scan','StoreController@getMoreScan');
$api->get('store/send_sms','StoreController@sendSms');
$api->post('store/edit_sms','StoreController@editSms');
$api->post('store/check_sms','StoreController@checkSms');
$api->post('store/one_self_take','StoreController@oneSelfTake');
$api->post('store/cancel_order','StoreController@cancelOrder');
$api->post('store/auth_order_cancel','StoreController@authOrderCancel');
$api->get('store/get_sign_package','StoreController@getSignPackage');
$api->post('store/upload_qian_ming_img','StoreController@uploadQianMingImg');
$api->post('store/sure_receive_order','StoreController@sureReceiveOrder');
$api->post('store/agent_sure_receive_order','StoreController@agentSureReceiveOrder');
$api->get('store_goods/get_goods_taps','StoreGoodsController@getGoodsTaps');
$api->get('store_goods/get_goods_list','StoreGoodsController@getGoodsList');
$api->get('store_goods/share_goods','StoreGoodsController@shareGoods');
$api->get('store_goods/get_store_user','StoreGoodsController@getStoreUser');
$api->get('store_goods/get_goods_detail','StoreGoodsController@getGoodsDetail');
$api->get('store_goods/get_sale_info','StoreGoodsController@getSaleInfo');
$api->get('store_goods/get_sale_account','StoreGoodsController@getSaleAccount');
$api->post('store_goods/upload_wx_qr_code_img','StoreGoodsController@uploadWxQrCodeImg');
$api->post('store_goods/edit_express','StoreGoodsController@editExpress');
$api->get('store_goods/get_user_data','StoreGoodsController@getUserData');
$api->get('store_goods/get_user_list','StoreGoodsController@getUserlist');
$api->get('store_goods/get_see_user_data','StoreGoodsController@getSeeUserData');
$api->get('store_goods/get_see_user_list','StoreGoodsController@getSeeUserList');
$api->get('store_goods/get_store_goods_inventory','StoreGoodsController@getStoreGoodsInventory');
$api->post('store_goods/set_store_goods_inventory','StoreGoodsController@setStoreGoodsInventory');
$api->get('store_goods/get_cancel_order_list','StoreGoodsController@getCancelOrderList');
$api->get('store_goods/get_all_refund_order','StoreGoodsController@getAllRefundOrder');
$api->get('store_goods/get_refund_order_detail','StoreGoodsController@getRefundOrderDetail');
$api->post('store_goods/delete_origin_order','StoreGoodsController@deleteOriginOrder');
$api->post('store_goods/cancel_refund_order','StoreGoodsController@cancelRefundOrder');
$api->get('store_goods/get_all_video','StoreGoodsController@getAllVideo');
$api->post('store_goods/aaasss','StoreGoodsController@aaasss');
$api->get('/order/ApplyDestoryOrder','OrdertestController@ApplyDestoryOrder');//订单统计
$api->get('/order/CancleDestoryOrder','OrdertestController@CancleDestoryOrder');//订单统计
$api->post('payment/pay','PaymentController@pay');
$api->post('minipay/pay','MiniPayController@pay');
$api->post('payment/set_bank_info','MiniSubController@setBankInfo');
$api->get('payment/get_bank_info','MiniSubController@getBankInfo');
$api->post('payment/finish','MiniSubController@finish');
$api->group(['prefix'=>'miniSub'], function ($api){
/**小商户进件***/
$api->post('apply_wx','MiniSubController@apply_wx');
/**获取平台证书***/
$api->get('getzhengshu','MiniSubController@getzhengshu');
/**查看进件状态***/
$api->get('query','MiniSubController@query');
$api->get('query123','MiniSubController@query123');
$api->post('uploadmedia','MiniSubController@uploadmedia');
$api->post('upload_img','MiniSubController@uploadImg');
//获取账户信息(可用余额 | 冻结余额)
$api->get('get_account_info','MiniSubController@getAccountInfo');
//商户提现
$api->post('withdrawal','MiniSubController@withdrawal');
//查询提现状态
$api->get('get_withdrawal_states','MiniSubController@getWithdrawalStates');
//下载
$api->get('get_down_withdraw','MiniSubController@getDownWithdraw');
$api->get('down','MiniSubController@down');
//获取银行账户信息
$api->get('get_bank_info','MiniSubController@getBankInfo');
//修改银行账户信息
$api->post('set_bank_info','MiniSubController@setBankInfo');
//获取记录
$api->get('get_account_detail','MiniSubController@getAccountDetail');
//开启点金
$api->post('dianjin','MiniSubController@dianjin');
//开启商家小票
$api->post('business_tips','MiniSubController@businessTips');
//关闭广告
$api->post('adverting','MiniSubController@adverting');
//退款
$api->post('refund_amount','MiniSubController@refundAmount');
//查询退款
$api->get('get_refund_state','MiniSubController@getRefundState');
//查询微信支付
$api->get('get_pay_state','MiniSubController@getPayState');
//获取全部银行
$api->get('get_all_bank','MiniSubController@getAllBank');
//获取银行支行
$api->get('get_bank_branch','MiniSubController@getBankBranch');
//查询分账结果
$api->get('fenzhang','MiniSubController@fenzhang');
});
//微店铺学分管理
$api->group(['prefix'=>'integral'], function ($api){
$api->get('get_store_integral_order_by','IntegralController@getStoreIntegralOrderBy');
$api->get('get_store_order_by','IntegralController@getStoreOrderBy');
$api->get('get_store_detail','IntegralController@getStoreDetail');
$api->get('integral_2','IntegralController@integral_2');
$api->get('get_inte_gifts','IntegralController@getInteGifts');
$api->post('exchange_gifts','IntegralController@exchangeGifts');
$api->post('cancel_exchange_gifts','IntegralController@cancelExchangeGifts');
$api->get('my_exchange','IntegralController@myExchange');
$api->get('my_gifts','IntegralController@myGifts');
$api->get('my_agent_exchange','IntegralController@myAgentExchange');
$api->get('get_agent_gifts','IntegralController@getAgentGifts');
});
$api->group(['prefix'=>'storage'], function ($api){
/**我的***/
$api->get('my_storage','StorageController@my_storage');
/**库存详情***/
$api->get('storage_detail','StorageController@storage_detail');
/***待入库***/
$api->get('put_storage','StorageController@put_storage');
/**入库操作**/
$api->get('put_good_storage','StorageController@put_good_storage');
/**入库记录详情(出库记录、盘库记录)**/
$api->get('put_storage_detail','StorageController@put_storage_detail');
/**入库记录分组**/
$api->get('put_storage_group','StorageController@put_storage_group');
/*获取商品图片**/
$api->get('get_goodimg','StorageController@get_goodimg');
/**一次性盘库**/
$api->post('one_sure_storage','StorageController@one_sure_storage');
/**获取库存**/
$api->get('get_storage','StorageController@get_storage');
/**盘库**/
$api->post('sure_storage','StorageController@sure_storage');
/**出库**/
$api->post('out_storage','StorageController@out_storage');
$api->get('sure_storage_group','StorageController@sure_storage_group');//盘库记录的分组
$api->get('sure_storage_detail','StorageController@sure_storage_detail');//盘库记录的详情
$api->get('put_storage_groups','StorageController@put_storage_groups');//入库记录的分组
$api->get('put_storage_details','StorageController@put_storage_details');//入库记录的详情
$api->post('put_storages','StorageController@put_storages');//入库的详情
$api->get('get_group','StorageController@get_group');//货物相亲
$api->get('get_detail','StorageController@get_detail');
});
// $api->get('/order/look_good','StorageController@look_good');
//消息公告
$api->get('index/get_message_info','IndexController@getMessageInfo');
$api->group(['prefix'=>'studio'],function ($api){
$api->get('studioBonus','StudioOrderController@studioBonus');
});
$api->group(['prefix'=>'apply'],function ($api){
$api->get('GetApplyList','ApplyUserController@GetApplyList');
$api->post('Apply','ApplyUserController@Apply');
$api->post('UploadApplyImg','ApplyUserController@UploadApplyImg');
$api->get('CancleApply','ApplyUserController@CancleApply');
});
$api->group(['prefix'=>'UserSend'],function($api){
/**代理发货操作**/
$api->get('user_send_good','UserGoodSendController@user_send_good');//new
/**货物扫码权限**/
$api->get('get_arr','UserGoodSendController@get_arr');//new
/**获取下级信息**/
$api->get('get_lower_user','UserGoodSendController@get_lower_user');//new
/**退货操作**/
$api->get('user_return_good','UserGoodSendController@user_return_good');//new
/**发货时的信息查询**/
$api->get('select_send_user','UserGoodSendController@select_send_user');//new
/**退款的信息查询*/
$api->get('select_return_user','UserGoodSendController@select_return_user');//new
/***零售**/
$api->get('sell','UserGoodSendController@sell');//new
});
});
$api->post('store_goods/upload_img','StoreGoodsController@uploadImg');
$api->get('store_goods/auth_code','StoreGoodsController@auth_code');
$api->post('payment/notify','PaymentController@notify');
$api->post('minipay/notify','MiniPayController@notify');
//退款
$api->post('payment/refund_notify','PaymentController@refundNotify');
$api->get('/good_show','GoodtestController@good_show');//商品列表
$api->get('/again_order','GoodtestController@again_order');//商品列表
$api->get('/json','IndexController@json');
$api->get('/index','IndexController@index');
$api->get('/indes','IndexController@indes');
// $api->get('/test','IndexController@test');
$api->get('/ress','UserController@ress');
$api->get('/CreateTokenTest','UserController@CreateTokenTest');
$api->get('/show','OrderController@show_index');
/*
* 活动
* */
$api->get('order/order_notpay','OrderController@order_notpay');
/*
* 商品
* */
$api->get('article/show_article','ArticleController@index');
$api->get('article/show_detail','ArticleController@show_detail');
$api->get('/user/auth_sel','UserController@auth_sel');
$api->get('/user/auth_show','UserController@auth_show');
$api->get('/wechat/wechat_data','BasicController@wechat_data');
$api->get('/wechat/return_code','BasicController@return_code');
// $api->get('inventory/detail','GoodSkuTotalController@total_sur');
$api->get('order/my_storage','GoodSkuTotalController@total_sur');//库存
$api->get('system','BasicController@system');
$api->get('send_code','LoginController@send_code');
$api->get('/proxy/updata','ActiveController@active');//代理升级
$api->get('gzh','UserController@gzh');
$api->get('gzhtest','UserController@gzhtest');
$api->get('test/{any}','UserController@test');
$api->get('test','UserController@test');
$api->get('test/{any}/{name}','UserController@test');
$api->get('test/{any}/{name}/{all}','UserController@test');
$api->get('test/{any}/{name}/{all}/{alll}','UserController@test');
$api->get('gzh/{nickname}/{mobile}/{code}',function (){
return '';
});
$api->get('gzh/{nickname}/{mobile}/{code}/{time}',function (){
return '';
});
$api->get('gzh/{nickname}','UserController@gzh');
$api->get('select','UserController@auth_select');
// $api->post('/user/login','UserController@login');
$api->any('/user/login','LoginController@login');
$api->get('/index/login','IndexController@login');
$api->get('/user/token','BasicController@token');
$api->post('/index/info','IndexController@info');
$api->get('/index/get_user_money','IndexController@get_user_money');
$api->get('/index/get_infos','IndexController@get_infos');
$api->get('/index/get_count','IndexController@get_count');
$api->get('/get_address','UserController@get_address');
$api->get('/get_data','OrdertestController@get_data');//获取订单赠品信息
$api->get('user/get_user_re','BasicController@get_user_re');
$api->get('/wechat/wechats','BasicController@wechats');
$api->any('/login/login123','LoginController@setUserInfo');
$api->get('discernAdress','AddressController@DealAddress');
$api->get('GetCache','ApplyUserController@GetCache');
$api->get('setBankInfodemo','MiniSubController@setBankInfodemo');
$api->get('getBankInfodemo','MiniSubController@getBankInfodemo');
$api->get('searchAccount','MiniSubController@searchAccount');
});