Remove backlash for DOMAIN

Brightcells лет %!s(int64=7): %!d(string=назад)
Родитель
Сommit
94ba6001ac
3 измененных файлов с 5 добавлено и 5 удалено
  1. 1 1
      page/templates/page/clerk_oauth.html
  2. 2 2
      page/templates/page/clerk_sale.html
  3. 2 2
      tamron/settings.py

+ 1 - 1
page/templates/page/clerk_oauth.html

@@ -151,7 +151,7 @@
151 151
                     if (check_result){
152 152
                         $.ajax({
153 153
                             type: 'POST',
154
-                            url: '{{ domain }}api/clerk/submit',
154
+                            url: '{{ domain }}/api/clerk/submit',
155 155
                             data: check_result,
156 156
                             success: function(data) {
157 157
                                 if (data.status == 200) {

+ 2 - 2
page/templates/page/clerk_sale.html

@@ -287,7 +287,7 @@
287 287
                     if (check_result){
288 288
                         $.ajax({
289 289
                             type: 'POST',
290
-                            url: '{{ domain }}api/clerk/sale/submit',
290
+                            url: '{{ domain }}/api/clerk/sale/submit',
291 291
                             data: check_result,
292 292
                             success: function(data) {
293 293
                                 if (data.status == 200) {
@@ -309,7 +309,7 @@
309 309
                     if (check_result){
310 310
                         $.ajax({
311 311
                             type: 'POST',
312
-                            url: '{{ domain }}api/clerk/sale/submit',
312
+                            url: '{{ domain }}/api/clerk/sale/submit',
313 313
                             data: check_result,
314 314
                             success: function(data) {
315 315
                                 if (data.status == 200) {

+ 2 - 2
tamron/settings.py

@@ -159,7 +159,7 @@ WECHAT = {
159 159
         'apiKey': '',
160 160
         'mch_cert': '',
161 161
         'mch_key': '',
162
-        'redpacket': {
162
+        'redpack': {
163 163
 
164 164
         }
165 165
     },
@@ -176,7 +176,7 @@ WECHAT_OAUTH2_REDIRECT_URL = 'https://api.pai.ai/wx_oauth2?redirect_url={}'
176 176
 LOGIT_BODY_FLAG = True
177 177
 LOGIT_RES_FLAG = True
178 178
 
179
-DOMAIN = 'http://tamron.xfoto.com.cn/'
179
+DOMAIN = 'http://tamron.xfoto.com.cn'
180 180
 
181 181
 try:
182 182
     from local_settings import *