@@ -1606,6 +1606,8 @@ protected function askFortuneConfirmation(string $facebookUserId, string $messag
16061606 'response_type ' => 'private_message ' ,
16071607 'ai_response ' => '' ,
16081608 'ai_provider ' => '' ,
1609+ 'platform ' => $ this ->currentPlatform ,
1610+ 'platform_user_id ' => $ facebookUserId ,
16091611 ]);
16101612
16111613 // เก็บข้อความต้นฉบับไว้ใน state เพื่อส่งให้ AI ตอนยืนยัน
@@ -1931,6 +1933,8 @@ protected function askForQuestionBeforeReading(string $facebookUserId, string $m
19311933 'response_type ' => 'private_message ' ,
19321934 'ai_response ' => '' ,
19331935 'ai_provider ' => '' ,
1936+ 'platform ' => $ this ->currentPlatform ,
1937+ 'platform_user_id ' => $ facebookUserId ,
19341938 ]);
19351939
19361940 // เก็บว่าเป็น "รอคำถาม" (ไม่ใช่รอยืนยัน)
@@ -2125,6 +2129,8 @@ protected function startNewConversation(string $facebookUserId, string $messageT
21252129 'response_type ' => 'private_message ' ,
21262130 'ai_response ' => '' ,
21272131 'ai_provider ' => '' ,
2132+ 'platform ' => $ this ->currentPlatform ,
2133+ 'platform_user_id ' => $ facebookUserId ,
21282134 ]);
21292135
21302136 // ✅ ดึงบริบทจากประวัติผู้ใช้ (Personalization)
@@ -2408,6 +2414,8 @@ protected function startDeepReadingFlow(string $facebookUserId, ?array $userProf
24082414 'response_type ' => 'private_message ' ,
24092415 'ai_response ' => '' ,
24102416 'ai_provider ' => '' ,
2417+ 'platform ' => $ this ->currentPlatform ,
2418+ 'platform_user_id ' => $ facebookUserId ,
24112419 ]);
24122420
24132421 Log::info ('Fortune: เริ่ม deep reading flow ใหม่ (ข้าม free limit) ' , [
@@ -5842,13 +5850,22 @@ protected static function buildTarotAnalysisSection(?array $tarotCard, string $g
58425850 ? 'กลับหัว: เน้นความท้าทาย อุปสรรค สิ่งที่ต้องระวัง และวิธีรับมือ '
58435851 : 'หงาย: เน้นพลังงานเชิงบวก โอกาส จุดแข็งที่เสริมดวง ' ;
58445852
5845- return "🃏 **วิเคราะห์ไพ่ยิปซี** (⚠️ ห้ามข้ามหัวข้อนี้! ต้องเขียนอย่างน้อย 80 คำ):
5846- - เริ่มต้นด้วย: \"ไพ่ {$ cardNameTh }ที่ {$ genderPrefix }{$ name }เปิดได้... \"
5847- - อธิบายความหมายของไพ่ใบนี้ในบริบทของคำถาม \"{$ question }\" อย่างละเอียด
5848- - เชื่อมโยงไพ่กับตำแหน่งดาวในแผนที่ดวงชะตา เช่น \"ไพ่นี้สอดคล้องกับดาว[ชื่อ]ที่อยู่ภพ[ชื่อ] ซึ่งบ่งบอกว่า... \"
5853+ return "🃏 **วิเคราะห์ไพ่ยิปซี** (⚠️ ห้ามข้ามหัวข้อนี้! ต้องเขียนอย่างน้อย 100 คำ):
5854+
5855+ **ย่อหน้าที่ 1 — แนะนำไพ่:** เริ่มด้วยประโยคแบบนี้:
5856+ \"ไพ่ที่ {$ genderPrefix }{$ name }เปิดได้คือ ไพ่ {$ cardNameTh }ค่ะ ไพ่ใบนี้มีความหมายเกี่ยวกับ [อธิบายความหมายหลักของไพ่ 1-2 ประโยค] \"
5857+
5858+ **ย่อหน้าที่ 2 — วิเคราะห์ร่วมกับดวงดาว:** ต้องมีประโยคที่เชื่อมไพ่กับดวงดาว เช่น:
5859+ \"เมื่อวิเคราะห์ไพ่ {$ cardNameTh }ร่วมกับดวงดาวของ {$ genderPrefix }{$ name }แล้ว พบว่า ไพ่ใบนี้สอดคล้องกับดาว[ชื่อ]ที่อยู่ภพ[ชื่อ] ซึ่งบ่งบอกว่า... \" + ขยายว่าพลังของไพ่เสริม/ขัดกับดาวอย่างไร
5860+
5861+ **ย่อหน้าที่ 3 — ตำแหน่งไพ่ + คำแนะนำ:**
58495862- ไพ่ตำแหน่ง {$ positionAdvice }
5850- - สรุปว่าไพ่ใบนี้บอกอะไร {$ genderPrefix }{$ name }เกี่ยวกับเรื่องนี้ — ฟันธงชัดเจน
5851- - ⚠️ ต้องเขียนเนื้อหาวิเคราะห์ไพ่จริงๆ ห้ามแค่บอกชื่อไพ่แล้วข้ามไป!
5863+ - บอกว่าไพ่ใบนี้แนะนำ {$ genderPrefix }{$ name }ว่าควรทำอะไร/ระวังอะไรในเรื่อง \"{$ question }\"
5864+
5865+ **ย่อหน้าที่ 4 — สรุปฟันธง:**
5866+ \"สรุปจากไพ่ {$ cardNameTh }ประกอบดวงชะตาของ {$ genderPrefix }{$ name } หมอจันทราเห็นว่า [ฟันธงชัดเจน 1-2 ประโยค] \"
5867+
5868+ ⚠️ ห้ามเขียนแค่ชื่อไพ่แล้วข้ามไปหัวข้อถัดไป! ต้องมีเนื้อหาวิเคราะห์ครบ 4 ย่อหน้า!
58525869
58535870 " ;
58545871 }
0 commit comments