本文整理匯總了PHP中Services::getpan方法的典型用法代碼示例。如果您正苦於以下問題:PHP Services::getpan方法的具體用法?PHP Services::getpan怎麽用?PHP Services::getpan使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Services
的用法示例。
在下文中一共展示了Services::getpan方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getPancardmanage
public static function getPancardmanage()
{
$category = Sample::category(Session::get('user_name'));
if ($category) {
$products = $category->products;
foreach ($products as $product) {
if ($product->prodCode == '2001') {
$sendata = Services::getpan();
$senddata = json_decode($sendata);
//print_r($sendata); exit;
if ($sendata && $senddata->status == "success") {
$pandata = $senddata->panForms;
return View::make('subretailer.pancard.manageview')->with('pandata', $pandata);
} else {
$pandata = "";
return View::make('subretailer.pancard.manageview')->with('pandata', $pandata);
}
}
}
} else {
return View::make('service');
}
}
示例2: getPancardmanage
public static function getPancardmanage()
{
$category = Sample::category(Session::get('user_name'));
if ($category) {
$products = $category->products;
//echo "<pre>";print_r(Session::all()); exit;
foreach ($products as $product) {
if ($product->prodCode == '2001') {
$sendata = Services::getpan();
$senddata = json_decode($sendata);
//print_r($senddata); exit;
if ($senddata) {
$pandata = $senddata->panForms;
}
return View::make('retailer.pancard.manageview')->with('pandata', $pandata);
}
}
return View::make('retailer.static');
} else {
return View::make('retailer.service');
}
}