当前位置: 首页>>代码示例>>PHP>>正文


PHP DBUtil::findUnique方法代码示例

本文整理汇总了PHP中DBUtil::findUnique方法的典型用法代码示例。如果您正苦于以下问题:PHP DBUtil::findUnique方法的具体用法?PHP DBUtil::findUnique怎么用?PHP DBUtil::findUnique使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DBUtil的用法示例。


在下文中一共展示了DBUtil::findUnique方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ruleDeleted

 public function ruleDeleted($rid)
 {
     $form = DBUtil::findUnique(DBUtil::$TABLE_ORDER_FORM, array(":rid" => $rid));
     pdo_delete(DBUtil::$TABLE_ORDER_ITEM, array("fid" => $form['id']));
     pdo_delete(DBUtil::$TABLE_ORDER_ORDER, array("fid" => $form['id']));
     pdo_delete(DBUtil::$TABLE_ORDER_FORM, array('id' => $form['id']));
 }
开发者ID:eduNeusoft,项目名称:weixin,代码行数:7,代码来源:module.php

示例2: ruleDeleted

 public function ruleDeleted($rid)
 {
     $egg = DBUtil::findUnique(DBUtil::$TABLE_EGG, array(":rid" => $rid));
     pdo_delete(DBUtil::$TABLE_EGG_USER, array("egid" => $egg['id']));
     pdo_delete(DBUtil::$TABLE_EGG_PRIZE, array("egid" => $egg['id']));
     pdo_delete(DBUtil::$TABLE_EGG_RECORD, array("egid" => $egg['id']));
     pdo_delete(DBUtil::$TABLE_EGG_SHARE, array("egid" => $egg['id']));
 }
开发者ID:wisemyth,项目名称:weizan,代码行数:8,代码来源:module.php

示例3: ruleDeleted

 public function ruleDeleted($rid)
 {
     $wkj = DBUtil::findUnique(DBUtil::$TABLE_WKJ, array(":rid" => $rid));
     pdo_delete(DBUtil::$TABLE_WKJ_FIREND, array("kid" => $wkj['id']));
     pdo_delete(DBUtil::$TABLE_WKJ_USER, array("kid" => $wkj['id']));
 }
开发者ID:ChainBoy,项目名称:wxfx,代码行数:6,代码来源:module.php

示例4: doMobileBindUser

 /**
  * author: weizan012 QQ:800083075
  * 绑定用户
  */
 public function doMobileBindUser()
 {
     global $_W, $_GPC;
     $egid = $_GPC['egid'];
     $tel = $_GPC['tel'];
     $uname = $_GPC['uname'];
     $openid = $this->getOpenId();
     $user = DBUtil::findUnique(DBUtil::$TABLE_EGG_USER, array(":egid" => $egid, ":openid" => $openid));
     $res = array();
     if (empty($user)) {
         $res['code'] = 500;
         $res['msg'] = "用户不存在";
         die(json_encode($res));
     }
     DBUtil::updateById(DBUtil::$TABLE_EGG_USER, array('tel' => $tel, 'uname' => $uname), $user['id']);
     $res['code'] = 200;
     die(json_encode($res));
 }
开发者ID:eduNeusoft,项目名称:weixin,代码行数:22,代码来源:site.php

示例5: Notify_pub

$notify = new Notify_pub();
$notify->saveData($input);
$data = $notify->getData();
$ordersetting = DBUtil::findUnique(DBUtil::$TABLE_ORDER_SETTING, array(":appid" => $data['appid']));
if (empty($data)) {
    $notify->setReturnParameter("return_code", "FAIL");
    $notify->setReturnParameter("return_msg", "通用订单参数格式校验错误");
    WeUtility::logging('info', "通用订单回复参数格式校验错误");
    exit($notify->createXml());
}
if ($data['result_code'] != 'SUCCESS' || $data['return_code'] != 'SUCCESS') {
    $notify->setReturnParameter("return_code", "FAIL");
    $notify->setReturnParameter("return_msg", "通用订单参数格式校验错误");
    WeUtility::logging('info', "通用订单回复参数格式校验错误");
    exit($notify->createXml());
}
//更新表订单信息
WeUtility::logging('info', "通知订单更新");
if ($notify->checkSign($ordersetting['shkey'])) {
    DBUtil::update(DBUtil::$TABLE_ORDER_ORDER, array("status" => 3, 'paytime' => TIMESTAMP), array("outno" => $data['out_trade_no']));
    $order = DBUtil::findUnique(DBUtil::$TABLE_ORDER_ORDER, array(":outno" => $data['out_trade_no']));
    $notify->setReturnParameter("return_code", "SUCCESS");
    $notify->setReturnParameter("return_msg", "OK");
    exit($notify->createXml());
} else {
    $notify->setReturnParameter("return_code", "FAIL");
    $notify->setReturnParameter("return_msg", "通用订单签名校验错误");
    WeUtility::logging('info', "通用订单签名校验错误");
    exit($notify->createXml());
}
WeUtility::logging('info', "通用订单更新回复数据" . $data);
开发者ID:aspnmy,项目名称:weizan,代码行数:31,代码来源:notify.php

示例6: findTemplateSetting

 /**
  * author: 微赞
  * @return bool
  * 查找模板消息
  */
 public function findTemplateSetting()
 {
     $ordertempalte = DBUtil::findUnique(DBUtil::$TABLE_ORDER_TEMPLATE, array(':weid' => $this->weid));
     return $ordertempalte;
 }
开发者ID:aspnmy,项目名称:weizan,代码行数:10,代码来源:site.php

示例7: error_reporting

 * @url http://www.cninone.com/
 */
error_reporting(1);
define('IN_MOBILE', true);
define("MON_WKJ", "mon_wkj");
require '../../framework/bootstrap.inc.php';
require_once "WxPayPubHelper/WxPayPubHelper.php";
require_once "monUtil.class.php";
require_once "dbutil.class.php";
$input = file_get_contents('php://input');
WeUtility::logging('info', "微砍价异步通知数据" . $input);
//WeUtility::logging('info',"商户key数据".$kjsetting);
$notify = new Notify_pub();
$notify->saveData($input);
$data = $notify->getData();
$kjsetting = DBUtil::findUnique(DBUtil::$TABLE_WKJ_SETTING, array(":appid" => $data['appid']));
if (empty($data)) {
    $notify->setReturnParameter("return_code", "FAIL");
    $notify->setReturnParameter("return_msg", "参数格式校验错误");
    WeUtility::logging('info', "微砍价回复参数格式校验错误");
    exit($notify->createXml());
}
if ($data['result_code'] != 'SUCCESS' || $data['return_code'] != 'SUCCESS') {
    $notify->setReturnParameter("return_code", "FAIL");
    $notify->setReturnParameter("return_msg", "参数格式校验错误");
    WeUtility::logging('info', "微砍价回复参数格式校验错误");
    exit($notify->createXml());
}
//更新表订单信息
WeUtility::logging('info', "通知订单更新");
if ($notify->checkSign($kjsetting['shkey'])) {
开发者ID:ChainBoy,项目名称:wxfx,代码行数:31,代码来源:notify.php

示例8: findKJsetting

 public function findKJsetting()
 {
     $kjsetting = DBUtil::findUnique(DBUtil::$TABLE_WKJ_SETTING, array(":weid" => $this->weid));
     return $kjsetting;
 }
开发者ID:ChainBoy,项目名称:wxfx,代码行数:5,代码来源:site.php


注:本文中的DBUtil::findUnique方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。