wupengfei 2 tahun lalu
induk
melakukan
d62e51085a

+ 0 - 1
application/api/controller/Login.php

@@ -28,7 +28,6 @@ class Login extends Base
         $app = Factory::miniProgram(config('app.mini_program'));
         $data = $app->auth->session($code);
         if(empty($data['openid'])) $this->error($data['errmsg']);
-        var_dump($data);
         $member = Db::name('store_member')->field('id,phone')->where('openid',$data['openid'])->find();
         if(empty($member)){
             $member_data = [

+ 0 - 2
application/api/controller/WeChatPay.php

@@ -42,7 +42,6 @@ class WeChatPay extends Controller
                 'trade_type'    => $trade_type, // 请对应换成你的支付方式对应的值类型
                 'openid'        => $openid,
             ];
-            var_dump($parameter);
             switch ($trade_type){
                 case 'JSAPI':
                     $app = Factory::payment(config('app.wx_pay'));
@@ -63,7 +62,6 @@ class WeChatPay extends Controller
             if(in_array($trade_type ,['JSAPI'])) $parameter['openid'] = $openid;
             if(in_array($trade_type ,['MWEB'])) $parameter['spbill_create_ip'] = request()->ip();
             $result = $app->order->unify($parameter);
-            var_dump($result);
             $jssdk = $app->jssdk;
             if($trade_type == 'APP') {
                 $config = $jssdk->appConfig($result['prepay_id']);