예제 #1
0
 /**
  * 竞价写入数据(计划表,关联关系表,竞价扩展表)
  */
 public static function into_bid_tables($proid, $offer, $broker_id, $amount, $city_id, $sn)
 {
     //添加计划
     $plan_id = Dao_Broker_HzPlan::add_plan('竞价计划', Const_HzPlan::BID_TYPE, $broker_id, $amount, Const_HzPlan::SPREAD);
     if ($plan_id) {
         Dao_Broker_HzPlan::add_bid_extend($plan_id, $sn);
         //竞价扩展表
         if (Dao_Broker_HzPlan::add_planning($proid, $broker_id, $city_id, $plan_id, Const_HzPlan::BID_TYPE, $offer, 1)) {
             return $plan_id;
         }
         //计划关联表
         return false;
     }
     return false;
 }