seven 2 өдөр өмнө
parent
commit
ba3d7079e3

+ 1 - 1
app/Services/PaymentOrderService.php

@@ -225,7 +225,7 @@ class PaymentOrderService extends BaseService
             $info = self::model()::create($data);
             $text = "✅ 支付提示 \n";
             // $text .= "请扫码支付 \n";
-            // $text .= "支付平台:{$data['bank_name']} \n";
+            $text .= "支付方式:{$data['bank_name']} \n";
             $text .= "请使用浏览器扫码 \n";
             $text .= "支付金额:" . $amount . " RMB \n";
             $text .= "请按实际支付金额进行付款,否则影响到账 \n";

+ 39 - 1
app/Services/SanJinRechargeService.php

@@ -62,8 +62,46 @@ class SanJinRechargeService
            
             Cache::put($chatId.'_sj_payment_type', $k); 
             Cache::put(get_step_key($chatId), StepStatus::INPUT_RECHARGE_SJ_MONEY);
+
+            $paymentType = $k;
+            $product = SanJinService::$PRODUCT;
+            $max = 0;
+            $min = 0;
+            $rate = 0;
+
+            $rechargeText = '';
+            foreach ($product as $k => $v) {
+                if($v['type'] == 'zfbge'){
+                    $rechargeText = "充值金额:".implode($v['fixed']);
+                }else{
+                    if ($v['type'] == $paymentType) {
+                        if ($min == 0) {
+                            $min = $v['min'];
+                        }
+                        if ($max == 0) {
+                            $max = $v['max'];
+                        }
+                        if ($min > $v['min']) {
+                            $min = $v['min'];
+                        }
+                        if ($max < $v['max']) {
+                            $max = $v['max'];
+                        }
+                    }
+                }
+                
+            }
+
             
-            $text = "请输入预充值金额!";
+            $text = "请输入充值的金额 \n";
+            $text .= "充值方式:".$channel[$k];
+            if($rechargeText){
+                $text .= $rechargeText;
+            }else{
+                $text .= "充值金额:{$min} - {$max}";
+            }
+
+            $text .= "🔔 提示:请务必核对(充值最大金额和最小金额,账号信息一致),若不一致无法到账。";
             $res = [
                 'chat_id' => $chatId,
                 'text' => $text,