WIN-2308041133\Administrator 5 miesięcy temu
rodzic
commit
d0c009af40

+ 1 - 6
application/api/controller/Lave.php

@@ -175,12 +175,7 @@ class Lave extends Api
         if (!$this->auth->isLogin()) {
             $this->error(__('Please login first'), null, 401);
         }
-        if ($where['name']=='测试昔拉'){
-            $where['user_id'] = 12125;
-        }else{
-            $where['user_id']=$this->auth->getUserinfo()['id'];
-        }
-
+        $where['user_id']=$this->auth->getUserinfo()['id'];
         $where1 = $where;
         unset($where1['from']);
         $where1['order_id'] = LaveMonthModel::getNewOrderId();

+ 1 - 1
extend/liuniu/repositories/LaveRepository.php

@@ -97,7 +97,7 @@ class LaveRepository
         if ($orderInfo['paid']) exception('支付已支付!');
         if ($orderInfo['amount'] <= 0) exception('该支付无需支付!');
         $openid = UserRelation::userIdToOpenId($plan_record['uid']);
-        if ($orderInfo['uid']==6779||$orderInfo['uid']==12125){
+        if ($orderInfo['user_id']==6779||$orderInfo['user_id']==12125){
             //                                          ($openid, $out_trade_no,         $total_fee,                  $attach,  $body,                   $contract_code,              $plan_id,              $spbill_create_ip                   ,$detail = '', $trade_type = 'JSAPI', $options = [], $cid = 0,$contract_display_account='')
             $rs = WechatService::signedOrder($openid, $orderInfo['order_id'], $orderInfo['amount'], "lave", $orderInfo['order_name'], $plan_record['contract_code'],$plan_record['plan_id'],$plan_record['spbill_create_ip'],'', 'JSAPI', [], $cid,$plan_record['contract_display_account']);