This commit is contained in:
mkm 2024-05-06 14:30:02 +08:00
parent 1fa0d3d5e5
commit 463e0d3eda
2 changed files with 2 additions and 2 deletions

View File

@ -62,6 +62,7 @@ class RetailOrderController extends BaseApiController
* @notes 创建零售订单 * @notes 创建零售订单
*/ */
public function createOrder(){ public function createOrder(){
d(WeChatConfigService::getPayConfigByTerminal(1));
$user=User::where('id',$this->request->userId)->find(); $user=User::where('id',$this->request->userId)->find();
$cartId = (Array)$this->request->post('cart_id', []); $cartId = (Array)$this->request->post('cart_id', []);
$mer_id = (Array)$this->request->post('mer_id', 0); $mer_id = (Array)$this->request->post('mer_id', 0);

View File

@ -85,8 +85,7 @@ class WeChatConfigService
*/ */
public static function getPayConfigByTerminal($terminal) public static function getPayConfigByTerminal($terminal)
{ {
$notifyUrl ='https://'.request()->host().'/pay/notifyMnp'; $notifyUrl ='https://'.request()->host().'/api/pay/notifyMnp';
$pay = PayConfig::where(['pay_way' => PayEnum::WECHAT_PAY])->findOrEmpty()->toArray(); $pay = PayConfig::where(['pay_way' => PayEnum::WECHAT_PAY])->findOrEmpty()->toArray();
//判断是否已经存在证书文件夹,不存在则新建 //判断是否已经存在证书文件夹,不存在则新建
if (!file_exists(runtime_path() . '/cert')) { if (!file_exists(runtime_path() . '/cert')) {