Преглед на файлове

v2注册接口路径修复

peng преди 2 години
родител
ревизия
f60af41ca2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Ansjer/urls.py

+ 2 - 2
Ansjer/urls.py

@@ -31,7 +31,7 @@ from Controller.UserDevice import UserDeviceShareController
 
 urlpatterns = [
     re_path('testApi/(?P<operation>.*)', TestApi.testView.as_view()),
-    re_path('account/authcode', UserController.authCodeView.as_view()),
+    re_path('^account/authcode', UserController.authCodeView.as_view()),
     re_path('v3/account/generatepictureCodeView/', UserController.generatePictureCodeView.as_view()),
     re_path('v3/account/imageCodeRegister/', UserController.Image_Code_RegisterView.as_view()),
     re_path('^account/register', UserController.registerView.as_view()),
@@ -113,7 +113,7 @@ urlpatterns = [
     re_path('dlotapack/(?P<fullPath>[0-9\w/.\-]+)', OTAEquipment.downloadOTAInterfaceV2),
     re_path('OTA/getDownLoadOTApackUrl ', OTAEquipment.getDownLoadOTApackUrl),
     re_path('OTA/checkMaxVersion', OTAEquipment.checkMaxVersion),
-    re_path('v2/account/authcode', UserController.v2authCodeView.as_view()),
+    re_path('^v2/account/authcode', UserController.v2authCodeView.as_view()),
     re_path('v2/account/register', UserController.v2registerView.as_view()),
     re_path('v2/account/forgetCode', UserController.v2forgetPwdCodeView.as_view()),
     re_path('v2/account/resetPwdByCode', UserController.v2resetPwdByCodeView.as_view()),