金柚静态 支付修改4

This commit is contained in:
“wanyongkang”
2024-02-02 17:32:25 +08:00
parent 7af1b2358e
commit 8e01ca53c0
2 changed files with 2 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ class UserPrice extends Model
//根据用户价格
if ($discount != 0) {
if ($discount == -1) {
$price = $$this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']])['UserPrice'];
$price = $this->getOne(['UserId' => $user_id,'PackageId' => $package_info['Id']])['UserPrice'];
} else {
$scheme_model = new PriceScheme;
$discount = $scheme_model->getone(['Id' => $discount])['discount'];

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-09-30 17:32:46
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2024-02-02 17:27:51
* @LastEditTime: 2024-02-02 17:30:32
*/
namespace fastphp\base;
@@ -22,11 +22,6 @@ class Controller
//初始化属性,实例化对应模型
public function __construct($controller,$action)
{
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
header('HTTP/1.1 405 Method Not Allowed');
header('Allow: GET, POST, PUT, DELETE');
exit;
}
$data = json_decode(file_get_contents("php://input"),true);
$getPayload = false;
if(isset($data['cookie'])){