seven 2 dní pred
rodič
commit
6e7752c96b

+ 1 - 1
app/Http/Controllers/api/TelegramWebHook.php

@@ -68,7 +68,7 @@ class TelegramWebHook extends Controller
             $m->json = $data;
             $m->save();
             Util::delCache($message->chat->id);
-            Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
+            // Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
 
             DB::beginTransaction();
             try {

+ 3 - 3
app/Services/PaymentOrderService.php

@@ -239,9 +239,9 @@ class PaymentOrderService extends BaseService
             $data['pay_url'] = $item['payUrl'];
             $data['pay_data'] = json_encode($ret, JSON_UNESCAPED_UNICODE);
             $info = self::model()::create($data);
-            $text = "✅ 支付提示 \n";
-            // $text .= "请扫码支付 \n";
-            $text .= "支付方式:{$data['bank_name']} \n";
+            // $text = "✅ 支付提示 \n";
+            $text = "{$data['bank_name']}充值确认";
+            // $text .= "支付方式:{$data['bank_name']} \n";
             $text .= "请使用浏览器扫码 \n";
             $text .= "支付金额:" . $amount . " RMB \n";
             $text .= "请按实际支付金额进行付款,否则影响到账 \n";

+ 4 - 1
app/Services/SanJinRechargeService.php

@@ -333,8 +333,11 @@ class SanJinRechargeService extends BaseService
                 'reply_to_message_id' => $messageId
             ];
         }
-        Cache::forget(get_step_key($chatId));
+      
         $res = PaymentOrderService::createPay($chatId,$amount,$paymentType);
+        if(isset($res['image'])){
+            Cache::forget(get_step_key($chatId));
+        }
         return $res;
     }