field[$name])) { $qapp_user = (new QappUserService)->getGolableUser(); if ($name == 'user_info') { $user = User::find($qapp_user->uid); $this->field[$name] = $user; } if ($name == 'uid') { $this->field[$name] = $qapp_user->uid; } if ($name == 'phone') { $this->field[$name] = $qapp_user->phone; } if ($name == 'distribution_channel_id') { // \Log::info('user:'); // \Log::info(json_encode($qapp_user,true)); $this->field[$name] = (isset($qapp_user->user) && !empty($qapp_user->user))? $qapp_user->user->distribution_channel_id : $qapp_user->distribution_channel_id; } if ($name == 'send_order_id') { //$this->field[$name] = $qapp_user->send_order_id; $this->field[$name] = ReadRecordService::getSendOrderId($qapp_user->uid); } if ($name == 'app_pay_merchat_id') { $this->field[$name] = $qapp_user->app_pay_merchat_id; } if ($name == 'h5_pay_merchat_id') { $this->field[$name] = $qapp_user->h5_pay_merchat_id; } if ($name == 'ali_pay_merchat_id') { $this->field[$name] = $qapp_user->ali_pay_merchat_id; } } return $this->field[$name]; } protected function getNowSendOrderInfo(){ $send_order_id = $this->send_order_id; if(!$send_order_id){ return null; } if(!$this->account_send_order){ $this->account_send_order = QappSendOrder::getSendOrderById($send_order_id); } return $this->account_send_order; } }