kenken999 commited on
Commit
893b7a5
1 Parent(s): 14aea36
controllers/gpt_enginner20240619090031 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 2e787946d837678768a913989306aae8f5209b7f
controllers/gpt_enginner20240619090114 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit b7d1941585adb94697f89bea83a9aba727afae33
controllers/gpt_enginner20240619090209 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit cf91530e3a8d37bbb94a7557682a6d9c0a938ebe
mysite/routers/fastapi.py CHANGED
@@ -207,11 +207,12 @@ def setup_webhook_routes(app: FastAPI):
207
  logger.info("Received Headers: %s", received_headers)
208
  logger.info("Received Body: %s", body.decode("utf-8"))
209
  #send to appsheet
210
- get_senario("user_id",res)
211
  #apps script send
212
  headers = {
213
  "Content-Type": "application/json",
214
  }
 
215
  response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
216
 
217
  line_signature = received_headers.get("x-line-signature")
 
207
  logger.info("Received Headers: %s", received_headers)
208
  logger.info("Received Body: %s", body.decode("utf-8"))
209
  #send to appsheet
210
+ get_senario("user_id",str(body))
211
  #apps script send
212
  headers = {
213
  "Content-Type": "application/json",
214
  }
215
+ logger.info("Received Body: %s", "send data to appsheet ")
216
  response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
217
 
218
  line_signature = received_headers.get("x-line-signature")