/**
  * 产品
  */
 public function products()
 {
     $request = new SFProduct();
     $carrier = 0;
     $result = $request->getProductList(1, 20, $carrier);
     if (!$result['status']) {
         addLog("products", $result, $_POST, "[getProductList]");
         $this->error($result['info']);
     }
     $prodList = $result['info']['prodList'];
     $resultCode = $result['info']['resultCode'];
     $resultReason = $result['info']['resultReason'];
     if ($resultCode == '1000') {
         $this->assign('prod_list', $prodList);
     } else {
         addLog("products", $resultReason, $resultReason, "[getProductList result]");
         $this->error($resultReason);
     }
     $request = new SFOrder();
     $result = $request->queryBalance();
     if ($result['status']) {
         $this->assign('channel', $result['info']);
     }
     $this->assign("appkey", $request->getAppKey());
     $this->display();
 }
 public function index()
 {
     $request = new SFProduct();
     $result = $request->getProductList(1, 20);
     dump($result);
 }