version('v1',[ 'namespace'=>'App\Http\Controllers','middleware'=>'request_log' ],function ($api){ $api->post('text_notify_url',function (){ return true; }); $api->get('text_order','UserController@order_infos'); $api->get('giftCache','RankController@giftCache'); $api->get('GetOrderDetail','OrdertestController@GetOrderDetail');//获取活动时间 $api->get('AddDataGood','GoodtestController@AddDataGood');//获取活动时间 $api->post('Enroll/message','EnrollController@message'); $api->get('Enroll/paysdemo','EnrollController@paysdemo'); /*----------------登录相关---------------*/ $api->get('/login/judge_login','LoginController@judge_login'); $api->get('/banzui',function (){ return view('banzui'); }); $api->post('/login/ban_code','LoginController@ban_code'); $api->post('/login/banLogin','LoginController@banLogin'); $api->post('/login/neikuLogin','LoginController@neikuLogin'); $api->get('/wechat_mess','UserController@wechat_mess'); $api->any('/login/login','LoginController@login'); $api->post('/login/assitLogin','LoginController@assitLogin'); $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->group(['middleware' => 'jwt.auth'], function($api) { $api->get('/minilogin/getNoFinishOrder','MiniLoginController@getNoFinishOrder'); }); $api->post('/miniSub/refund_notify','MiniSubController@refundNotify'); $api->get('/login/get_openid','LoginController@wx_Login'); $api->get('/enid','LoginController@enid'); $api->get('/fangwei/auth','LoginController@wx_auth'); $api->get('notice/GetNotice','BasicController@WeChatNotice'); $api->get('notice/GetNoticeList','BasicController@GetNoticeList'); $api->post('user_apply/upload_apply_image','ApplyUserController@UploadApplyImage'); $api->group(['middleware' => 'jwt.auth'], function($api) { $api->post('wechat/UploadImg','WechatController@UploadImg'); /*--------------------个人信息开始-------------------*/ $api->get('user/getinfo','UserController@getinfo'); $api->get('user/getAppAgentInfo','UserController@getAppAgentInfo'); $api->group(['middleware' => 'assit'], function($api) { $api->get('user/per_data','UserController@per_data'); }); $api->get('user/user_cert','AuditController@user_cert'); $api->post('/user/auth_share','UserController@auth_share'); $api->get('/user/auth_code','UserController@auth_code'); /*-----------------换绑手机号-----------*/ $api->get('user/send_code','UserController@send_code'); $api->get('user/change_num','UserController@change_num'); $api->get('user/Rank','RankController@Rank'); $api->get('user/GetUserSignStatus','RankController@GetUserSignStatus'); $api->get('user/GetUserInfo','RankController@GetUserInfo'); $api->post('gift/GetInte','RankController@GetInte'); $api->post('gift/address','RankController@address'); $api->post('gift/UpdateAddAddress','RankController@UpdateAddAddress'); $api->post('gift/gift_list','RankController@gift_list'); $api->post('gift/exchange','RankController@exchange'); $api->post('gift/record_detail','RankController@record_detail'); $api->post('gift/destory_order','RankController@destory_order'); /*-----------------地址管理------------*/ $api->group(['middleware' => 'assit'], function($api) { $api->get('user/search_address','UserController@search_address'); $api->get('user/show_address','UserController@show_address'); $api->post('user/add_address', 'UserController@add_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/GetSetingTime','UserController@GetSetingTime'); /** * 商品 */ $api->get('/goods/list','GoodsController@goods_list'); $api->get('/goods/detail','GoodsController@goods_detail'); $api->post('order/CheckGoodNum','OrdertestController@CheckGoodNum');//提交时校验数量 $api->get('/order/get_express','OrdertestController@get_express');//订单物流 $api->get('order/destory','OrdertestController@destory');//订单作废 $api->get('order/GetOrderDetail','OrdertestController@GetOrderDetail');//合并详情 $api->get('/express/GetExpressInnage','OrdertestController@GetExpressInnage'); $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('/order/get_gift_info','OrdertestController@get_gift'); $api->get('/order_list','OrdertestController@order_list');//订单列表 $api->post('/submit_order', 'OrdertestController@submit_order');//提交订单 $api->get('/order/search_order','OrdertestController@search_order'); $api->get('order_detail','OrdertestController@order_detail'); $api->get('/order/get_gift','OrdertestController@get_data'); $api->get('/order/order_data','OrdertestController@order_data'); $api->get('/order/order_rank','OrdertestController@order_rank'); $api->get('/order/get_order_expresses','OrdertestController@get_order_expresses'); $api->get('/get_log','OrdertestController@get_log'); $api->group(['prefix'=>'pays'], function ($api){ $api->get('GetEnrollInfo','EnrollController@GetEnrollInfo'); $api->post('pays','EnrollController@pays'); $api->post('GetStatus','EnrollController@GetStatus'); $api->post('GetAddress','EnrollController@GetAddress'); $api->post('UpdateAddAddress','EnrollController@UpdateAddAddress'); }); /*肥皂**/ $api->group(['middleware' => 'assit','prefix'=>'soap'], function ($api){ $api->get('pays','SoapController@pays'); $api->get('SearchStatus','SoapController@SearchStatus'); $api->get('GetUserAddress','SoapController@GetUserAddress'); $api->get('GetSoapList','SoapController@GetSoapList'); $api->get('get_express','SoapController@get_express'); }); $api->get('/wechat/wechat','BasicController@wechat'); $api->get('/logout','UserController@logout'); //微店 $api->group(['middleware' => 'assit'], function($api) { $api->post('store/set_agree','StoreController@setAgree'); $api->post('store/share_store','StoreController@shareStore'); $api->post('store/upload_cert_img','StoreController@uploadCertImgQny'); $api->post('store/upload_face_img','StoreController@uploadFaceImg'); //获取客服信息 $api->get('store/getServiceInfo','StoreController@getServiceInfo'); $api->get('store/get_store_info','StoreController@getStoreInfo'); $api->get('store/getZbsRank','StoreController@getZbsRank'); $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->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/CheckOrder','StoreController@CheckOrder'); $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/scan_code_info','StoreController@scanCodeInfo'); $api->post('store/submit_scan_code_info','StoreController@submitScanCodeInfo'); $api->post('store/delete_scan_code','StoreController@deleteScanCode'); $api->get('store/get_no_send_order','StoreController@getNoSendOrder'); $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->get('store_goods/getZbsData','StoreGoodsController@getZbsData'); $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->get('get_yue','MiniSubController@get_yue'); //商户提现 $api->post('withdrawal','MiniSubController@withdrawal'); //查询提现状态 $api->get('get_withdrawal_states','MiniSubController@getWithdrawalStates'); //下载 $api->get('get_down_withdraw','MiniSubController@getDownWithdraw'); //获取所有银行列表 $api->get('getPersonBankList','MiniSubController@getPersonBankList'); //获取省 $api->get('getProvinceList','MiniSubController@getProvinceList'); //获取市 $api->get('getCityList','MiniSubController@getCityList'); //获取支行 $api->get('getBankBranchList','MiniSubController@getBankBranchList'); //获取银行账户信息 $api->get('get_bank_info','MiniSubController@getBankInfo'); //修改银行账户信息 $api->post('set_bank_info','MiniSubController@setBankInfo'); $api->post('setBankInfoTest','MiniSubController@setBankInfoTest'); $api->post('setBankInfodemo','MiniSubController@setBankInfodemo'); //获取记录 $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->post('refund_amount_manual','MiniSubController@refundAmountManual'); //查询退款 $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(['middleware' => 'assit','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('index/get_message_info','IndexController@getMessageInfo'); $api->get('index/get_message_list','IndexController@getMessageList'); $api->get('app/index','BasicController@index'); }); $api->post('store_goods/upload_img','StoreGoodsController@uploadImg'); $api->post('store_goods/uploadImgQi','StoreGoodsController@uploadImgQi'); $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->group(['middleware' => 'assit'],function($api) { $api->get('/good_show', 'GoodtestController@good_show');//商品列表 }); $api->get('/good/LimitGood', 'GoodtestController@LimitGood');//商品列表 $api->post('/pay/message','EnrollController@message'); /**肥皂支付回调**/ $api->post('/soap/message','SoapController@message'); $api->get('order/order_notpay','OrderController@order_notpay'); $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('gzh',function (){ // return ''; // }); // $api->get('gzh','UserController@gzh'); $api->get('GetShareInfo', 'ShareController@GetShareInfo'); $api->get('shouquan','UserController@shouquan'); $api->get('xxShouQuan','UserController@xxShouQuan'); // $api->get('gzh/{nickname}','UserController@gzh'); $api->get('select','UserController@auth_select'); $api->post('data_or','RankController@data_or'); $api->post('data_orls','RankController@data_orls'); $api->post('data_oruser','RankController@data_oruser'); $api->any('/user/login','LoginController@login'); $api->get('/wechat/wechats','BasicController@wechats'); $api->any('/login/login123','LoginController@setUserInfo'); $api->any('/createTt','LoginController@CreateToken'); $api->get('discernAdress','AddressController@DealAddress'); $api->get('address/getDiscern','AddressController@getDiscern'); $api->get('address/smart_parse','AddressController@smart_parse'); $api->get('address/getTest','AddressController@getTest'); $api->get('GetCache','ApplyUserController@GetCache'); $api->get('GetIndex','GoodtestController@GetIndex'); $api->get('getuser_num','GoodtestController@getuser_num'); $api->get('getBankInfodemo','MiniSubController@getBankInfodemo'); $api->get('searchAccount','MiniSubController@searchAccount'); $api->group(['prefix'=>'TravelImage','namespace'=>'TravelImage'],function ($api){ /**登录**/ $api->get('wx_Login','TravelImageController@wx_Login'); $api->post('Login','TravelImageController@Login'); $api->group(['middleware' => 'jwt.auth'],function ($api){ $api->get('TravelImageList','TravelImageController@TravelImageList'); $api->get('get_folder','TravelImageController@get_folder'); $api->get('get_img_detail','TravelImageController@get_img_detail'); $api->get('GetTravelList','TravelImageController@GetTravelList'); $api->post('UploadImg','TravelImageController@UploadImg'); $api->post('GetImg','TravelImageController@GetImg'); $api->post('GetUserImage','TravelImageController@GetUserImage'); }); }); $api->group(['prefix'=>'SzyImageH5','namespace'=>'SImage'],function ($api){ /**登录**/ $api->get('wx_Login','SImageController@wx_Login'); $api->post('Login','SImageController@Login'); $api->group(['middleware' => 'jwt.auth'],function ($api){ $api->get('TravelImageList','SImageController@TravelImageList'); $api->get('get_folder','SImageController@get_folder'); $api->get('get_img_detail','SImageController@get_img_detail'); $api->get('GetTravelList','SImageController@GetTravelList'); $api->post('UploadImg','SImageController@UploadImg'); $api->post('GetImg','SImageController@GetImg'); $api->post('GetUserImage','SImageController@GetUserImage'); }); }); $api->group(['prefix'=>'','namespace'=>'TravelImage'],function ($api){ $api->get('travel','TravelImageController@travel'); }); $api->group(['prefix'=>'','namespace'=>'SImage'],function ($api){ $api->get('szyImg','SImageController@szyImg'); }); $api->group(['prefix'=>'order','namespace'=>'Assit'], function ($api) { $api->group(['middleware' => ['assit','jwt.auth']], function($api) { $api->group(['prefix' => 'oor'], function ($api) { $api->get('/order_list','OrdertestController@order_list');//订单列表 }); }); }); $api->group(['prefix'=>'','namespace'=>'HuiFu'], function ($api) { // $api->get('/Bins','HuiFuController@Bins');//检查是否上传信息 $api->group(['middleware' => ['jwt.auth']], function($api) { $api->group(['prefix' => 'HuiFu'], function ($api) { $api->get('/check','HuiFuController@check');//检查是否上传信息 $api->post('/QuickBankApply','HuiFuController@QuickBankApply');//绑卡申请 $api->post('/QuickBankConfirm','HuiFuController@QuickBankConfirm');//绑卡确认 $api->post('/QuickBankPay','HuiFuController@QuickBankPay');//支付申请 $api->post('/QuickBankSms','HuiFuController@QuickBankSms');//支付确认 $api->post('/CheckStatus','HuiFuController@CheckStatus');//支付状态查询 $api->post('/UnbindBank','HuiFuController@UnbindBank');//支付状态查询 $api->post('/BankInfo','HuiFuController@BankInfo');//支付状态查询 }); $api->group(['prefix' => 'HuiFuSZ'], function ($api) { $api->get('/check','HuiFuSZController@check');//检查是否上传信息 $api->post('/QuickBankPay','HuiFuSZController@QuickBankPay');//支付申请 $api->post('/QuickBankSms','HuiFuSZController@QuickBankSms');//支付确认 $api->post('/CheckStatus','HuiFuSZController@CheckStatus');//支付状态查询 $api->post('/ImageEnroll','HuiFuSZController@ImageEnroll');//支付状态查询 }); $api->group(['prefix' => 'HuiFuSZOnline'], function ($api) { $api->get('/check','HuiFuSZOnlineController@check');//检查是否上传信息 $api->post('/QuickBankPay','HuiFuSZOnlineController@QuickBankPay');//支付申请 $api->post('/QuickBankSms','HuiFuSZOnlineController@QuickBankSms');//支付确认 $api->post('/CheckStatus','HuiFuSZOnlineController@CheckStatus');//支付状态查询 $api->post('/GetAddress','HuiFuSZOnlineController@GetAddress');//支付状态查询 $api->post('/UpdateAddAddress','HuiFuSZOnlineController@UpdateAddAddress');//支付状态查询 $api->post('/GetEnrollInfo','HuiFuSZOnlineController@GetEnrollInfo');//支付状态查询 }); }); }); });