WIN-2308041133\Administrator 7 months ago
parent
commit
989af0904e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      application/api/controller/Pay.php

+ 5 - 5
application/api/controller/Pay.php

@@ -634,11 +634,11 @@ class Pay extends Api
 //            $data=$up;
 //        }else{
         $number = date('ymdh', time()) . rand(10000, 99999);//订单编号
-        if (!input('pricebuy')) {
-            $this->error(__('金额不对'));
-        }
+//        if (!input('pricebuy')) {
+//            $this->error(__('金额不对'));
+//        }
         $price = input('price');
-        $pricebuy = input('pricebuy');
+//        $pricebuy = input('pricebuy');
 //            if(input('lx')==2){
 //                $price=input('priced');
 //                $pricebuy=input('pricebuy');
@@ -649,7 +649,7 @@ class Pay extends Api
 // 计算三年后的时间戳
         $threeYearsLater = strtotime('+3 years', $now);
 
-        $total_price = $pricebuy * $num;
+        $total_price = $price * $num;
         $up = [
             'type' => 1,
             'uid' => input('uid'),