金柚静态 支付修改4
This commit is contained in:
@@ -15,7 +15,7 @@ class UserPrice extends Model
|
|||||||
//根据用户价格
|
//根据用户价格
|
||||||
if ($discount != 0) {
|
if ($discount != 0) {
|
||||||
if ($discount == -1) {
|
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 {
|
} else {
|
||||||
$scheme_model = new PriceScheme;
|
$scheme_model = new PriceScheme;
|
||||||
$discount = $scheme_model->getone(['Id' => $discount])['discount'];
|
$discount = $scheme_model->getone(['Id' => $discount])['discount'];
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* @Author: kangkang
|
* @Author: kangkang
|
||||||
* @Date: 2020-09-30 17:32:46
|
* @Date: 2020-09-30 17:32:46
|
||||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||||
* @LastEditTime: 2024-02-02 17:27:51
|
* @LastEditTime: 2024-02-02 17:30:32
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace fastphp\base;
|
namespace fastphp\base;
|
||||||
@@ -22,11 +22,6 @@ class Controller
|
|||||||
//初始化属性,实例化对应模型
|
//初始化属性,实例化对应模型
|
||||||
public function __construct($controller,$action)
|
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);
|
$data = json_decode(file_get_contents("php://input"),true);
|
||||||
$getPayload = false;
|
$getPayload = false;
|
||||||
if(isset($data['cookie'])){
|
if(isset($data['cookie'])){
|
||||||
|
|||||||
Reference in New Issue
Block a user