|
|
@@ -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'),
|