public function index() { $data['active'] = 'activity'; $data['activities'] = Activity::all(); $data['sites'] = Mastertp::all(); return View::make(Auth::user()->role . '.activity.list', $data); }
public function activity($activity_limit = 5) { $users = $comments = $activity_type = array(); $issue = $this; $project_id = $this->project_id; $project = \Project::find($project_id); foreach (\Activity::all() as $row) { $activity_type[$row->id] = $row; } $activities = array(); foreach (\User\Activity::where('item_id', '=', $issue->id)->order_by('created_at', 'ASC')->get() as $activity) { $activities[] = $activity; switch ($activity->type_id) { case 2: if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = \User::find($activity->user_id); } if (!isset($comments[$activity->action_id])) { $comments[$activity->action_id] = \Project\Issue\Comment::find($activity->action_id); } break; case 5: if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = \User::find($activity->user_id); } if (!isset($users[$activity->action_id])) { $users[$activity->action_id] = \User::find($activity->action_id); } break; default: if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = \User::find($activity->user_id); } break; } } /* Loop through the projects and activity again, building the views for each activity */ $return = array(); foreach ($activities as $row) { switch ($row->type_id) { case 2: $return[] = \View::make('project/issue/activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issue, 'project' => $project, 'user' => $users[$row->user_id], 'comment' => $comments[$row->action_id], 'activity' => $row)); break; case 3: $return[] = \View::make('project/issue/activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issue, 'project' => $project, 'user' => $users[$row->user_id], 'activity' => $row)); break; case 5: $return[] = \View::make('project/issue/activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issue, 'project' => $project, 'user' => $users[$row->user_id], 'assigned' => $users[$row->action_id], 'activity' => $row)); break; case 6: $tag_diff = json_decode($row->data, true); $return[] = \View::make('project/issue/activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issue, 'project' => $project, 'user' => $users[$row->user_id], 'tag_diff' => $tag_diff, 'tag_counts' => array('added' => sizeof($tag_diff['added_tags']), 'removed' => sizeof($tag_diff['removed_tags'])), 'activity' => $row)); break; default: $return[] = \View::make('project/issue/activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issue, 'project' => $project, 'user' => $users[$row->user_id], 'activity' => $row)); break; } } return $return; }
/** * Select activity for a project * * @param int $activity_limit * @return array */ public function activity($activity_limit) { $users = $issues = $comments = $activity_type = array(); /* Load the activity types */ foreach (Activity::all() as $row) { $activity_type[$row->id] = $row; } /* Loop through all the logic from the project and cache all the needed data so we don't load the same data twice */ $project_activity = User\Activity::where('parent_id', '=', $this->id)->order_by('created_at', 'DESC')->take($activity_limit)->get(); if (!$project_activity) { return null; } foreach ($project_activity as $activity) { if (!isset($issues[$activity->item_id])) { $issues[$activity->item_id] = Project\Issue::find($activity->item_id); } if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = User::find($activity->user_id); } if (!isset($comments[$activity->action_id])) { $comments[$activity->action_id] = Project\Issue\Comment::find($activity->action_id); } if ($activity->type_id == 5) { if (!isset($users[$activity->action_id])) { if ($activity->action_id > 0) { $users[$activity->action_id] = User::find($activity->action_id); } else { $users[$activity->action_id] = array(); } } } } /* Loop through the projects and activity again, building the views for each activity */ $return = array(); foreach ($project_activity as $row) { switch ($row->type_id) { case 2: $return[] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $this, 'user' => $users[$row->user_id], 'comment' => $comments[$row->action_id], 'activity' => $row)); break; case 5: $return[] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $this, 'user' => $users[$row->user_id], 'assigned' => $users[$row->action_id], 'activity' => $row)); break; default: $return[] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $this, 'user' => $users[$row->user_id], 'activity' => $row)); break; } } return $return; }
/** * Build the user's dashboard * * @param int $activity_limit * @return array */ public function dashboard($activity_limit = 5) { $dashboard = $users = $issues = $projects = $comments = $activity_type = array(); /* Load the activity types */ foreach (Activity::all() as $row) { $activity_type[$row->id] = $row; } /* Loop through all the active projects */ foreach (Project\User::active_projects() as $project) { $dashboard[$project->id] = array(); $projects[$project->id] = $project; /* Loop through all the logic from the project and cache all the needed data so we don't load the same data twice */ foreach (User\Activity::where('parent_id', '=', $project->id)->order_by('created_at', 'DESC')->take($activity_limit)->get() as $activity) { $dashboard[$project->id][] = $activity; switch ($activity->type_id) { case 2: if (!isset($issues[$activity->item_id])) { $issues[$activity->item_id] = Project\Issue::find($activity->item_id); } if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = static::find($activity->user_id); } if (!isset($comments[$activity->action_id])) { $comments[$activity->action_id] = Project\Issue\Comment::find($activity->action_id); } break; case 5: if (!isset($issues[$activity->item_id])) { $issues[$activity->item_id] = Project\Issue::find($activity->item_id); } if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = static::find($activity->user_id); } if (!isset($users[$activity->action_id])) { $users[$activity->action_id] = static::find($activity->action_id); } break; default: if (!isset($issues[$activity->item_id])) { $issues[$activity->item_id] = Project\Issue::find($activity->item_id); } if (!isset($users[$activity->user_id])) { $users[$activity->user_id] = static::find($activity->user_id); } break; } } } /* Loop through the projects and activity again, building the views for each activity */ $return = array(); foreach ($dashboard as $project_id => $activity) { $return[$project_id] = array('project' => $projects[$project_id], 'activity' => array()); foreach ($activity as $row) { switch ($row->type_id) { case 2: $return[$project_id]['activity'][] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $projects[$project_id], 'user' => $users[$row->user_id], 'comment' => $comments[$row->action_id], 'activity' => $row)); break; case 5: $return[$project_id]['activity'][] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $projects[$project_id], 'user' => $users[$row->user_id], 'assigned' => $users[$row->action_id], 'activity' => $row)); break; case 6: $tag_diff = json_decode($row->data, true); $return[$project_id]['activity'][] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $projects[$project_id], 'user' => $users[$row->user_id], 'tag_diff' => $tag_diff, 'tag_counts' => array('added' => sizeof($tag_diff['added_tags']), 'removed' => sizeof($tag_diff['removed_tags'])), 'activity' => $row)); break; default: $return[$project_id]['activity'][] = View::make('activity/' . $activity_type[$row->type_id]->activity, array('issue' => $issues[$row->item_id], 'project' => $projects[$project_id], 'user' => $users[$row->user_id], 'activity' => $row)); break; } } } return $return; }
/** * 获取餐厅列表(目测饿了吗是根据地址来推荐的餐厅) * 两种情况:推荐餐厅和更多餐厅 * * 对应API:main/blade/my_store 和 main/blade/more_shop * * @param integer $uid 用户id * @param integer $x 经度 * @param integer $y 维度 * @return array 结果数组 */ public function getShop_list($uid = 2, $x = 0, $y = 0) { $result = array(); $data = array(); # 首先获取所有的活动 $activity = Activity::all()->toArray(); #TODO 然后获取推荐的店铺(至于到底返回多少的数量,这个只能根据经纬度的那个算法了) $shops = array(); //int $i = 0; $all_shops = Shop::all(); foreach ($all_shops as $shop) { $onestore = array(); $onestore['support_activity'] = explode(',', $shop->support_activity); // 所有支持的活动id $onestore['isHot'] = $shop->is_hot ? true : false; // 是否是热门餐厅 $onestore['isOnline'] = $shop->is_online ? true : false; // 是否营业 $onestore['isSupportPay'] = in_array('1', explode(',', $shop->pay_method)); // 是否支持在线支付 $onestore['shop_id'] = $shop->id; // 商家id $onestore['place_id'] = $shop->x; // -------------------位置经纬度和位置id后期再改数据库 $onestore['shop_url'] = 'shop/' . $shop->id; // 点击跳转到相应商家 $onestore['shop_logo'] = $shop->pic; // 商家的logo图片地址 $onestore['deliver_time'] = $shop->interval; // 送货时间间隔 $onestore['deliver_start'] = $shop->begin_time; // 送货开始时间 $onestore['shop_name'] = $shop->name; // 商家名称 $onestore['shop_level'] = $shop->level; // 五分制 $onestore['shop_announce'] = $shop->announcement; // 商家公告 $onestore['deliver_start_statement'] = $shop->deliver_start_statement; // 起送价描述 $onestore['shop_address'] = $shop->address; // 商家地址 $onestore['is_opening'] = $shop->state; // 0是正在营业,1是打烊了,2是太忙了 $onestore['close_msg'] = $shop->close_msg; // 关门信息 $onestore['business_hours'] = $shop->operation_time; // 营业时间 $onestore['shop_summary'] = $shop->intro; // 商家简介 $onestore['order_count'] = $shop->sold_num; // 订单数量 $onestore['is_collected'] = in_array($shop->id, Collectshop::where('uid', $uid)->lists('shop_id')); // 是否被收藏了 $onestore['additions'] = array(); // 额外的内容 array_push($shops, $onestore); } $data['activity'] = $activity; $data['shops'] = $shops; $result['data'] = $data; return $result; }
<?php include 'config.php'; $message = []; if (isset($_GET['delete_all'])) { $del_activities = Activity::all(); foreach ($del_activities as $del_activity) { $del_activity->delete(); } $message['type'] = "success"; $message['message'] = "Old activities deleted"; } if (isset($_GET['delete'])) { $de_activity = Activity::find($_GET['delete']); $de_activity->delete(); $mssage['type'] = "success"; $message['message'] = "Activity deleted"; } $activity = Activity::where('date_end', '=', '0000-00-00 00:00:00')->get(); echo $template->view()->make('activities')->with('activities', $activity)->with('message', $message)->render();
<?php include '../../inc/init.inc'; isset($conditions) ? $args['conditions'] = $conditions : ''; $res->total = isset($args) ? Activity::count($args) : Activity::count(); $res->currentPage = isset($currentPage) ? $currentPage : 1; $res->limit = $args['limit'] = isset($limit) ? $limit : 7; $args['offset'] = ($res->currentPage - 1) * $args['limit']; $args['order'] = isset($order) ? $order : 'created_at desc'; $res->activities = Activity::all($args); if (isset($error) && ($error = "4xx")) { $res->useTemplate("Liste des activités", array('error' => "l'activité n'existe pas")); } else { $res->useTemplate("Liste des activités"); }
/** * 获取餐厅列表 * 默认15个,多的在更多餐厅里面显示 */ public function getShopList($user_x, $user_y) { $result = array('shop_list' => array(), 'more_shop' => array()); $result['shop_list']['data'] = array(); $result['more_shop']['data'] = array(); $result['shop_list']['data']['shops'] = array(); # 首先获取所有的活动 $result['shop_list']['data']['activity'] = array(); $activity = Activity::all(); foreach ($activity as $act) { if ($act->aid != '1') { $result['shop_list']['data']['activity'][(string) $act->aid] = $act->name; } } $data['shops'] = array(); $geohash = new Geohash(); $shopArray = $geohash->geohashGet($user_x, $user_y); $shops = $shopArray['data']; $num = 0; // 计数器,只15个 foreach ($shops as $oneshop) { $onestore = array(); $shop = $oneshop['shopData']; $support_activity = explode(',', $shop->support_activity); $onestore['support_activity'] = $support_activity[0] == '' ? [] : $support_activity; // 所有支持的活动id $onestore['isHot'] = $shop->is_hot ? 'true' : 'false'; // 是否是热门餐厅 $onestore['isOnline'] = $this->isOnline($shop->operation_time, date('H:i')) ? true : false; // 是否营业 $onestore['isSupportPay'] = in_array('1', explode(',', $shop->pay_method)); // 是否支持在线支付 $onestore['shop_id'] = $shop->id; // 商家id $onestore['place_id'] = 111111; // -------------------位置经纬度和位置id后期再改数据库 $onestore['shop_url'] = url('shop/' . $shop->id); // 点击跳转到相应商家 $onestore['shop_logo'] = $shop->pic; // 商家的logo图片地址 $onestore['deliver_time'] = (double) $shop->interval; // 送货时间间隔 $onestore['deliver_start'] = $shop->begin_time; // 送货开始时间 $onestore['shop_name'] = $shop->name; // 商家名称 /* echo $onestore['isOnline']; echo $onestore['shop_name']; */ $onestore['shop_type'] = $shop->type; $Level = $this->getLevel($shop); $onestore['shop_level'] = $Level['thing_total']; // 五分制 $onestore['shop_announce'] = $shop->announcement; // 商家公告 $onestore['deliver_state_start'] = $shop->begin_price; $onestore['deliver_start_statement'] = $shop->begin_price; // 起送价描述 $onestore['shop_address'] = $shop->address; // 商家地址 $onestore['is_opening'] = $this->isOnline($shop->operation_time, date('H:i')) ? 0 : 1; // 0是正在营业,1是打烊了,2是太忙了 $onestore['is_ready_for_order'] = $shop->reserve; // 是否接收预定 $onestore['close_msg'] = $shop->close_msg; // 关门信息 $onestore['business_hours'] = $shop->operation_time; // 营业时间 $onestore['shop_summary'] = $shop->intro; // 商家简介 $onestore['order_count'] = (double) $shop->sold_num; // 订单数量 if (!Auth::check()) { $onestore['is_collected'] = false; } else { $user = Auth::user(); $onestore['is_collected'] = in_array($shop->id, $user->collectShop->lists('shop_id')) ? true : false; // 是否被收藏了 } $onestore['additions'] = array(); // 额外的内容 $num = $num + 1; if ($num < 4) { // 更多餐厅和上面那排餐厅的数量 array_push($result['shop_list']['data']['shops'], $onestore); } else { array_push($result['more_shop']['data'], $onestore); } } return $result; }
public function getFilterClients() { $activities = Activity::all(); $interests = Interest::all(); $this->layout->content = View::make('admin.dashboard')->with('title', 'Filter Clients')->nest('innerContent', 'admin.filterClients', array('activities' => $activities, 'interests' => $interests)); }
public function index() { $this->data['logs'] = Activity::all(); $this->data['logsActive'] = 'active'; return View::make('admin.logs.index', $this->data); }
/** * 获取餐厅列表 * 默认15个,多的在更多餐厅里面显示 */ public function getShopList() { $result = array('shop_list' => array(), 'more_shop' => array()); $result['shop_list']['data'] = array(); $result['more_shop']['data'] = array(); $result['shop_list']['data']['shops'] = array(); # 首先获取所有的活动 $result['shop_list']['data']['activity'] = array(); $activity = Activity::all(); foreach ($activity as $act) { $result['shop_list']['data']['activity'][(string) $act->aid] = $act->name; } $data['shops'] = array(); #TODO:由前端获取用户坐标 $user_x = 39.9812385; $user_y = 116.3068369; $geohash = new Geohash(); $shopArray = $geohash->geohashGet($user_x, $user_y); $shops = $shopArray['data']; #TODO:这个地方的$shops就应该进缓存了 $num = 0; // 计数器,只15个 foreach ($shops as $oneshop) { $onestore = array(); $shop = $oneshop['shopData']; $onestore['support_activity'] = explode(',', $shop->support_activity); // 所有支持的活动id $onestore['isHot'] = $shop->is_hot ? 'true' : 'false'; // 是否是热门餐厅 $onestore['isOnline'] = $shop->is_online ? 'true' : 'false'; // 是否营业 $onestore['isSupportPay'] = in_array('1', explode(',', $shop->pay_method)); // 是否支持在线支付 $onestore['shop_id'] = $shop->id; // 商家id #TODO:place_id不需要 $onestore['place_id'] = '不需要'; // -------------------位置经纬度和位置id后期再改数据库 $onestore['shop_url'] = 'shop/' . $shop->id; // 点击跳转到相应商家 $onestore['shop_logo'] = $shop->pic; // 商家的logo图片地址 $onestore['deliver_time'] = $shop->interval; // 送货时间间隔 $onestore['deliver_start'] = $shop->begin_time; // 送货开始时间 $onestore['shop_name'] = $shop->name; // 商家名称 $onestore['shop_type'] = $shop->type; $Level = $this->getLevel($shop); $onestore['shop_level'] = $Level['thing_total']; // 五分制 $onestore['shop_announce'] = $shop->announcement; // 商家公告 #TODO:模版里用的deliver_state_start $onestore['deliver_state_start'] = $shop->begin_price; $onestore['deliver_start_statement'] = $shop->begin_price; // 起送价描述 $onestore['shop_address'] = $shop->address; // 商家地址 $onestore['is_opening'] = $shop->state; // 0是正在营业,1是打烊了,2是太忙了 $onestore['is_ready_for_order'] = $shop->reserve; // 是否接收预定 $onestore['close_msg'] = $shop->close_msg; // 关门信息 $onestore['business_hours'] = $shop->operation_time; // 营业时间 $onestore['shop_summary'] = $shop->intro; // 商家简介 $onestore['order_count'] = $shop->sold_num; // 订单数量 if (!Auth::check()) { $onestore['is_collected'] = false; } else { $user = Auth::user(); $onestore['is_collected'] = in_array($shop->id, $user->collectShop->lists('shop_id')) ? true : false; // 是否被收藏了 } #TODO:额外内容有什么用 $onestore['additions'] = array(); // 额外的内容 $num = $num + 1; if ($num < 2) { array_push($result['shop_list']['data']['shops'], $onestore); } else { array_push($result['more_shop']['data'], $onestore); } } return $result; }
public function index() { $activities = Activity::all(); $menu = 'project'; return View::make('activities.index', compact('activities', 'menu')); }
public function findDeadActivity() { // { // id: "1", // event: "activity.user.favorited", // activity_type: "Spot", // activity_id: "299", // user_id: "60", // deleted_at: null, // created_at: "2015-02-04 18:34:33", // updated_at: "2015-02-04 18:34:33", // event_id: "54d2699e5b1ee_60_1423074873" // }, echo "<table cellpadding='5'>"; $activities = Activity::all(); $total_dead = 0; $activities->each(function ($item) use(&$total_dead) { if ($item->parent == NULL) { $total_dead++; } }); echo "<tr style='font-weight:bold'><td>Total Dead:</td><td>{$total_dead}</td></tr>"; $activities->each(function ($item) { echo "<tr>"; echo "<td>{$item->event}</td>"; echo "<td>{$item->activity_type}:{$item->activity_id}</td>"; $parent = $item->parent; if ($parent !== NULL && $item->event == 'activity.itinerary.created' && $parent->isFavorites()) { echo "<td style='color:red'>*** Favorites Itinerary in Feed ***</td>"; if (Input::has('murder') && Input::get('murder') == true) { $item->forceDelete(); } } if ($parent == NULL) { echo "<td style='color:red'>*** Dead Parent ***</td>"; if (Input::has('fire') && Input::get('fire') == true) { $item->delete(); echo "<td style='color:red'><b>*** Removed ***</b></td>"; } } echo "</tr>"; }); echo "</table>"; // return $activities; }
/** * Display a listing of the resource. * * @return Response */ public function index() { // // App::abort(404); // App::abort(403, '403'); // throw new DecryptException("Error Processing Request", 1); // return $_ENV; // return App::environment(); // Crypt::setMode('ctr'); // Crypt::setCipher($cipher); //return hash_algos(); // return base64_decode('MQ=='); // return urlencode('shop_id=1'); // return com_create_guid(); // return base64_encode(12); // return hash('sha1', 2); // Crypt::setCipher(MCRYPT_SAFER64); // Crypt::setMode(MCRYPT_MODE_ECB); // $groups = Sentry::findAllGroups(); // return $groups; // $credentials = array( // 'email' => '*****@*****.**', // 'password' => 'test', // ); // // Authenticate the user // $user = Sentry::authenticate($credentials, false); // return $user; // setcookie('test','test',time()+24*60*60); // Session::put('password', 'password'); // Cookie::get('password'); // return Session::getId(); // Session::setId(id) // return Session::get('intended'); // return $url->intended; $activities = Activity::all(); $shopActivities = ShopActivity::where('wy_shop_id', 2)->where('wy_enable', ACTIVITY_ENABLE_1)->get(array('wy_activity_id')); var_dump($shopActivities); return; $user = new User(); $user->wy_user_name = "xx"; return $user->toJson(); $mainOrders = MainOrder::with('subOrders')->where('wy_shop_id', 2)->get(); return $mainOrders; $name = DB::table('user')->skip(2)->get(array('wy_user_id', 'wy_user_name')); DB::table('users')->where('votes', '>', 100)->sharedLock()->get(); Log::info(); var_dump($name); return $name; return Session::all(); $user = new User(); var_dump($user); $value = Request::server(); return $value; return urldecode('Mg%3D%3D'); return base64_encode("all"); $headShop = new stdObject(); $headShop->wy_shop_id = "all"; $headShop->wy_shop_name = "全部店铺"; // $headShop = (object)array( // "wy_shop_id" => "all", // "wy_shop_name" => "全部店铺", // ); var_dump($headShop); return $headShop->wy_shop_id; return Cookie::get('login_user'); return base64_decode('NTE='); $url = Session::get('url'); return $url['intended']; return Session::all(); // return $_COOKIE; // return base64_decode('YTo2OntzOjY6Il90b2tlbiI7czo0MDoiVHpEcXBUd2NXZlpEaFZWd0VDV1g2eWNvNmkwQ0UxMWg5cThyc3hpZyI7czozOiJ1cmwiO2E6MDp7fXM6NToiZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo4OiJwYXNzd29yZCI7czo4OiJwYXNzd29yZCI7czozODoibG9naW5fODJlNWQyYzU2YmRkMDgxMTMxOGYwY2YwNzhiNzhiZmMiO3M6MjoiNDMiO3M6OToiX3NmMl9tZXRhIjthOjM6e3M6MToidSI7aToxNDI4NTUyMzc1O3M6MToiYyI7aToxNDI4NTUxODg5O3M6MToibCI7czoxOiIwIjt9fQ=='); // return $user = Sentry::getUser(); // return base64_decode(base64_decode('TVE9PQ==')); DB::connection()->getPdo(); DB::getPdo(); return base64_encode('wenyi_2'); return Session::all(); // new MessageBag; // Session::get(name, default) // return Cookie::get(key, default); $encrypted1 = Crypt::encrypt('1'); $encrypted2 = Crypt::encrypt(1); $encrypted3 = Crypt::encrypt(1); echo $encrypted1 . PHP_EOL; echo $encrypted2 . PHP_EOL; echo $encrypted3 . PHP_EOL; $decrypted1 = Crypt::decrypt($encrypted1); $decrypted2 = Crypt::decrypt($encrypted2); $decrypted3 = Crypt::decrypt($encrypted3); var_dump($decrypted1); var_dump($decrypted2); var_dump($decrypted3); // Response::make() // // $orders = MainOrder::all(); // $suborder = new SubOrder; // return $suborder->get(); // return $suborder->sum(); // return $orders; // $main = new MainOrder(); // dd($main->getNameSpace); // $count = Input::get('count'); // if( empty($count) ) { // $count = 3; // } // $count = 3; // $goods = Goods::where('wy_goods_id', '<=', $count)->get(array('wy_goods_id', 'wy_goods_name', // 'wy_goods_img','wy_goods_sale_price','wy_sale_count','wy_brief')); // $goods = $goods->toArray(); // $orders = MainOrder::where('wy_order_state', 1)->groupBy('wy_shop_id')->get(array('wy_shop_id','wy_order_number', 'wy_recv_name', // 'wy_recv_phone','wy_recv_addr','wy_actual_money','wy_book_time','wy_order_state')); // var_dump($orders); // unset($goods[0]['wy_goods_id']); // return $orders; //推送前台的数据最好携带uid信息,可以直接推送 // $sendMsg = array( // "func_no" => 700003, // "data" => array( // array( // "main_order_id" => 1, // "shop_id" => 1 // ) // ) // ); // var_dump($sendMsg); // $jsonData = 'content=' . json_encode($sendMsg); // var_dump($jsonData); // $url = "http://192.168.140.128:9501/push"; // return $this->post($url, $jsonData); }