更新
This commit is contained in:
parent
1fa0d3d5e5
commit
463e0d3eda
@ -62,6 +62,7 @@ class RetailOrderController extends BaseApiController
|
||||
* @notes 创建零售订单
|
||||
*/
|
||||
public function createOrder(){
|
||||
d(WeChatConfigService::getPayConfigByTerminal(1));
|
||||
$user=User::where('id',$this->request->userId)->find();
|
||||
$cartId = (Array)$this->request->post('cart_id', []);
|
||||
$mer_id = (Array)$this->request->post('mer_id', 0);
|
||||
|
@ -85,8 +85,7 @@ class WeChatConfigService
|
||||
*/
|
||||
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();
|
||||
//判断是否已经存在证书文件夹,不存在则新建
|
||||
if (!file_exists(runtime_path() . '/cert')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user