Пример #1
0
 /**
  * 逻辑删除商品
  *
  * @param int $product_id
  * @param int $status
  * @return bool
  */
 protected function delete_product($product_id, $status = 0)
 {
     /* 调用业务逻辑 */
     switch ($status) {
         case 2:
             return BLL_Product::delete($product_id);
             break;
         default:
             return BLL_Product::modify_status($product_id, ProductService::PRODUCT_STATUS_DELETE);
             break;
     }
 }