当前位置: 首页>>代码示例>>PHP>>正文


PHP Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx方法代码示例

本文整理汇总了PHP中Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx方法的典型用法代码示例。如果您正苦于以下问题:PHP Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx方法的具体用法?PHP Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx怎么用?PHP Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Model_Broker_AjkBrokerExtend的用法示例。


在下文中一共展示了Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: handle_request

 public function handle_request()
 {
     $accountBalanceZeroList = Model_Log_AccountBalanceZeroLog::getLogList($this->_startId, self::LOG_LIMIT);
     if (empty($accountBalanceZeroList)) {
         $this->logMsg(sprintf('Id: %d 处理完成', $this->_startId));
         return;
     }
     foreach ($accountBalanceZeroList as $accountBalanceZero) {
         $this->setCursor($accountBalanceZero['id']);
         /** 根据 AccountId 获取UserId */
         $accountId = $accountBalanceZero['accountId'];
         $accountMapping = Model_Payment_AccountMapping::getAccountMappingByAccountId($accountId, Model_Payment_AccountMapping::SITE_TYPE_AJK);
         if (empty($accountMapping)) {
             $this->logMsg(sprintf('没有获取到AccountMapping accountId:%d', $accountId));
             continue;
         }
         $userId = $accountMapping['userId'];
         $brokerInfo = Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx($userId, array('cityId', 'brokerId', 'userId', 'trueName', 'payType'));
         if (empty($brokerInfo)) {
             $this->logMsg(sprintf('没有获取到经纪人信息 accountId:%d userId:%d', $accountId, $userId));
             continue;
         }
         $brokerId = $brokerInfo['brokerId'];
         if ($brokerInfo['payType'] != 10000) {
             $this->logMsg(sprintf('经纪人:%s AccountId:%d UserId:%d BrokerId:%d PayType=%d不是PPC经纪人 ', $brokerInfo['trueName'], $accountId, $userId, $brokerId, $brokerInfo['payType']));
             continue;
         }
         $cityId = $brokerInfo['cityId'];
         $data = array('brokerId' => $brokerId, 'cityId' => $cityId, 'type' => 301, 'remark' => '账户余额不足', 'flag' => 0, 'addDate' => time(), 'operateId' => 0, 'from' => __METHOD__, 'siteType' => 4);
         try {
             Model_House_UpDown_Task::create($data, date('Ymd'))->save();
         } catch (Exception $e) {
             $this->logMsg(sprintf('经纪人:%s CityId:%d AccountId:%d UserId:%d BrokerId:%d 通知账户没钱失败', $brokerInfo['trueName'], $cityId, $accountId, $userId, $brokerId));
         }
         $this->logMsg(sprintf('经纪人:%s CityId:%d AccountId:%d UserId:%d BrokerId:%d 通知账户没钱成功', $brokerInfo['trueName'], $cityId, $accountId, $userId, $brokerId));
     }
     if (count($accountBalanceZeroList) < self::LOG_LIMIT) {
         $this->logMsg(sprintf('Id: %d 处理完成', $this->_startId));
         return;
     }
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:41,代码来源:AccountBalanceZero.php

示例2: handle_request_internal

 public function handle_request_internal()
 {
     $apf = APF::get_instance();
     /**
      * @var $request AJKRequest
      */
     $this->request = $apf->get_request();
     $this->params = $this->request->get_parameters();
     $this->broker = self::$BrokerInfo;
     $this->brokerExtend = Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx($this->broker['BaseInfo']["userId"]);
     if ($this->get_broker_usertype() != 2) {
         $this->redirect_to_login();
     }
     //var_dump($this->params['action']);
     switch ($this->params['action']) {
         case 'editInfo':
             $this->editInfo();
         default:
             $this->display();
     }
     return 'Broker_EditInfo';
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:22,代码来源:EditInfo.php


注:本文中的Model_Broker_AjkBrokerExtend::getBrokerInfoByUserIdEx方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。