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


PHP get_promptmsg函数代码示例

本文整理汇总了PHP中get_promptmsg函数的典型用法代码示例。如果您正苦于以下问题:PHP get_promptmsg函数的具体用法?PHP get_promptmsg怎么用?PHP get_promptmsg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: checkIsExists

 /**
  * @param string regions_en 国家或地区英文
  * @return Boolean
  * @author yxd
  */
 public function checkIsExists($country)
 {
     $checkdata = $this->sql("SELECT * FROM " . $this->getTableName() . " WHERE regions_en='{$country}' AND is_delete=0")->select();
     if (empty($checkdata)) {
         self::$errMsg[10017] = get_promptmsg(10017, '系统不存在此国家');
         return true;
     }
     return false;
 }
开发者ID:ohjack,项目名称:newErp,代码行数:14,代码来源:countryList.model.php

示例2: checkIsExists

 /**
  * 实例化父类,完成数据库插入判断
  * @see commonModel::checkIsExists()
  * @param string $data
  * @return bool
  * @author lzx
  */
 public function checkIsExists($data)
 {
     $checkdata = $this->sql("SELECT * FROM " . C('DB_PREFIX') . "platform WHERE platform='{$data['platform']}' AND is_delete=0")->select();
     if (!empty($checkdata)) {
         self::$errMsg[10017] = get_promptmsg(10017, $data['platform']);
         return true;
     }
     return false;
 }
开发者ID:ohjack,项目名称:newErp,代码行数:16,代码来源:platform.model.php

示例3: view_update

 /**
  * 执行修改
  */
 public function view_update()
 {
     if (!A('PromptMsg')->act_update()) {
         $errorinfo = A('PromptMsg')->act_getErrorMsg();
         $msg = empty($errorinfo) ? get_promptmsg(10103) : implode('<br>', $errorinfo);
         $this->error($msg, 'index.php?mod=PromptMsg&act=index');
     } else {
         $this->success(get_promptmsg(200, '修改成功'), 'index.php?mod=PromptMsg&act=index&rc=reset');
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:13,代码来源:promptMsg.view.php

示例4: view_insert

 public function view_insert()
 {
     if (!A('StatusMenu')->act_insert()) {
         $errorinfo = A('StatusMenu')->act_getErrorMsg();
         $msg = empty($errorinfo) ? get_promptmsg(10021) : implode('<br>', $errorinfo);
         $this->error($msg, 'index.php?mod=StatusMenu&act=index');
     } else {
         $this->success(get_promptmsg(200, "新增成功"), "index.php?mod=StatusMenu&act=index&rc=reset");
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:10,代码来源:statusMenu.view.php

示例5: view_delete

 public function view_delete()
 {
     if (!A('Platform')->act_delete()) {
         $errorinfo = A('Platform')->act_getErrorMsg();
         $msg = empty($errorinfo) ? get_promptmsg(10021) : implode('<br>', $errorinfo);
         $this->error($msg, 'index.php?mod=platform&act=index');
     } else {
         $this->success(get_promptmsg(200, '删除平台'), 'index.php?mod=platform&act=index&rc=reset');
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:10,代码来源:platform.view.php

示例6: act_delete

 /**
  * 根据Id删除文件信息   异步实现
  * @return array
  * @author yxd
  */
 public function act_delete()
 {
     $id = trim($_POST['id']);
     if (M('StatusMenu')->deleteData($id)) {
         self::$errMsg[200] = get_promptmsg(200, "删除");
         return array('state' => 'ok');
     } else {
         return array('state' => 'no');
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:15,代码来源:statusMenu.action.php

示例7: view_saveEub

 public function view_saveEub()
 {
     if (A('EubAccount')->act_saveEub()) {
         $this->success(get_promptmsg(200, '保存成功'), 'index.php?mod=Account&act=index&rc=reset');
     } else {
         $errorinfo = A('Account')->act_getErrorMsg();
         $msg = empty($errorinfo) ? get_promptmsg(10110, "更新EUB") : implode('<br>', $errorinfo);
         $this->error($msg, 'index.php?mod=Account&act=index');
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:10,代码来源:eubAccount.view.php

示例8: calcOrderCarrierAndShippingFee

 /**
  * 综合调用函数返回最后计算出来的运费和运输方式
  */
 public function calcOrderCarrierAndShippingFee()
 {
     if (empty($this->orderData)) {
         $this->errMsg[10118] = get_promptmsg(10118);
         return false;
     }
     $carriers = $this->calcOrderCarriers();
     if (!($shippingfees = $this->calcOrderShippingFee($carriers))) {
         //记录错误,需要自己写到消息提示配置里面。
         return false;
     }
     return $this->chooseOrderShipping($shippingfees);
 }
开发者ID:ohjack,项目名称:newErp,代码行数:16,代码来源:calcordershipping_class.php

示例9: act_updateData

 public function act_updateData()
 {
     $id = $_REQUEST['id'];
     $data = array("functionname" => trim($_REQUEST['functionname']), "name" => trim($_REQUEST['name']), "requesturl" => trim($_REQUEST['requesturl']), "method" => trim($_REQUEST['method']), "format" => trim($_REQUEST['format']), "v" => trim($_REQUEST['v']), "username" => empty($_REQUEST['username']) ? 'purchase' : $_REQUEST['username'], "getOrPost" => $_REQUEST['getOrPost'] == '2' ? '2' : '1', "cachetime" => (int) $_REQUEST['cachetime']);
     $ret = M($this->act_getModel())->getData("id", "functionname='" . mysql_real_escape_string($data['functionname']) . "' or method='" . mysql_real_escape_string($data['method']) . "'");
     foreach ($ret as $k => $v) {
         if ($v['id'] != $id) {
             self::$errMsg[10119] = get_promptmsg(10119, "函数名称或请求API");
             return false;
         }
     }
     return M($this->act_getModel())->updateData($id, $data);
 }
开发者ID:bizonix,项目名称:sailvan,代码行数:13,代码来源:fromOpenConfig.action.php

示例10: act_changePassWord

 public function act_changePassWord()
 {
     $curPwd = trim($_POST['curPwd']);
     $newPwd = trim($_POST['newPwd']);
     $repPwd = trim($_POST['repPwd']);
     if ($newPwd == $repPwd) {
         $userInfor = M('Developer')->getDeveloper("*", "id = " . $this->act_getUserInfor("id"));
         $pwdIsRight = false;
         $powerInfo = M("interfacePower")->getUserInfoByLoginEmail($this->act_getUserInfor("email"));
         if (!empty($powerInfo)) {
             //以鉴权为准
             if ($powerInfo['loginPsd'] == md5(md5(trim($curPwd)))) {
                 $pwdIsRight = true;
             }
         } else {
             //以本系统为准
             if ($userInfor[0]['login_pwd'] == md5(md5(trim($curPwd)))) {
                 $pwdIsRight = true;
             }
         }
         if ($pwdIsRight) {
             M('Developer')->begin();
             $updatePwd = M('Developer')->updateDataByColumn("id", $this->act_getUserInfor("id"), array("login_pwd" => md5(md5($newPwd))));
             if ($updatePwd > 0) {
                 if (!empty($powerInfo)) {
                     //以鉴权为准
                     $loginName = $this->act_getUserInfor("email");
                     $psw = $newPwd;
                     $updateStatus = M('interfacePower')->updateGlobalUserPsw($loginName, $psw);
                     if ($updateStatus['errCode'] == "0") {
                         M('Developer')->commit();
                         self::$errMsg[200] = get_promptmsg(200);
                     } else {
                         M('Developer')->rollback();
                         self::$errMsg[1903] = '密码同步到鉴权系统失败!';
                     }
                 } else {
                     M('Developer')->commit();
                     self::$errMsg[200] = get_promptmsg(200);
                 }
             } else {
                 self::$errMsg[10151] = get_promptmsg(10151);
             }
         } else {
             self::$errMsg[10152] = get_promptmsg(10152);
         }
     } else {
         self::$errMsg[10153] = get_promptmsg(10153);
     }
 }
开发者ID:bizonix,项目名称:sailvan,代码行数:50,代码来源:basicInfor.action.php

示例11: act_getAccountListByPlatform

 public function act_getAccountListByPlatform($uid, $platformId)
 {
     $accountList = M('UserCompetence')->getAcountPowerByUserId($uid, $platformId);
     $returnArr = array();
     if (!empty($accountList)) {
         foreach ($accountList as $accountId) {
             $accountInfo = M('Account')->getAccountById($accountId);
             $returnArr[$accountId] = $accountInfo['account'];
         }
         self::$errMsg[200] = get_promptmsg(200, '获取账号信息');
     } else {
         self::$errMsg[10040] = get_promptmsg(10040);
     }
     return $returnArr;
 }
开发者ID:ohjack,项目名称:newErp,代码行数:15,代码来源:userCompetence.action.php

示例12: splitOrderForStore

 /**
  * 仓库订单拆分逻辑,调用该方法前必须调用FormatOrder中的MarkOverSeaOrder标记订单仓库类型并插入到数据库中,然后再进行拆分
  */
 public function splitOrderForStore()
 {
     $orderData = $this->orderData;
     if (empty($orderData) || empty($orderData['order']['id'])) {
         $this->errMsg[10118] = get_promptmsg(10118);
         return false;
     }
     $orderStore = $orderData['order']['orderStore'];
     if (empty($orderStore)) {
         $this->errMsg[10126] = get_promptmsg(10126);
         //异常仓库订单
         return false;
     } elseif (in_array($orderStore, array(2))) {
         //判断该订单是否处于包含海外料号和国内料号订单(orderStore=2),后面可能会扩展多个仓混合订单,所以这里用in_array
         $storeIdArr = array();
         //定义一个数组存放orderData中sku所在仓库id;
         $orderDetail = $orderData['orderDetail'];
         if (!empty($orderDetail)) {
             $returnArr = array();
             //要返回的订单数组信息,可能返回多个(拆分后)也可能只返回一个(不拆分)
             $detailArr = array();
             //这个是模拟orderManage发货单拆分的格式(将storeId当成是虚拟发货单id),按照sku及数量对订单进行拆分
             foreach ($orderDetail as $value) {
                 $storeIdArr[] = intval($value['orderDetail']['storeId']) > 0 ? $value['orderDetail']['storeId'] : 0;
             }
             $storeIdArr = array_unique($storeIdArr);
             foreach ($storeIdArr as $storeId) {
                 foreach ($orderDetail as $value) {
                     if ($storeId == $value['orderDetail']['storeId']) {
                         $detailArr[$storeId] = array($value['orderDetail']['sku'] => $value['orderDetail']['amount']);
                     }
                 }
             }
             $newOrderDataArr = M('OrderManage')->splitOrderWithOrderDetail($orderData['order']['id'], $detailArr);
             return 'SPLITTED';
         } else {
             $this->errMsg[10075] = get_promptmsg(10075);
             //明细为空,不能拆
             return false;
         }
     } else {
         $this->errMsg[10127] = get_promptmsg(10127);
         //不是混合仓订单,不需要拆分
         return false;
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:49,代码来源:splitorder_class.php

示例13: act_getEubAccountByAccountId

 /**
  * 提供给仓库上传EUB跟踪号,获取EUB参数的接口
  * @param accountId
  * @return aray
  * @author zqt
  */
 public function act_getEubAccountByAccountId()
 {
     $accountId = intval($_GET['accountId']) ? intval($_GET['accountId']) : 0;
     if ($accountId <= 0) {
         self::$errMsg[10046] = get_promptmsg(10046);
         return false;
     } else {
         $accountEUBList = M('EubAccount')->geteubAccountByAcid($accountId);
         if (empty($accountEUBList[0])) {
             self::$errMsg[10140] = get_promptmsg(10140);
             return false;
         } else {
             $conditionArr = array('id' => array('$e' => $accountId));
             $AccountList = M('Account')->getAccountList($conditionArr);
             if (!empty($AccountList)) {
                 $accountEUBList[0]['suffix'] = $AccountList[0]['suffix'];
             }
             return $accountEUBList[0];
         }
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:27,代码来源:eubAccount.action.php

示例14: spiderOrderId

 /**
  * 根据开始和结束时间,抓取订单抓取号
  * @param datetime $starttime
  * @param datetime $endtime
  * @return bool
  * @author lzx
  */
 public function spiderOrderId($starttime, $endtime)
 {
     $OrderObject = F('ebay.package.GetOrders');
     $OrderObject->setRequestConfig($this->authorize);
     $page = 1;
     $hasmore = true;
     $simplelists = array();
     while ($hasmore) {
         $receivelists = $OrderObject->getOrderIds($starttime, $endtime, $page);
         $receivelists = XML_unserialize($receivelists);
         if (!isset($receivelists['GetOrdersResponse']['Ack']) || $receivelists['GetOrdersResponse']['Ack'] == 'Failure') {
             self::$errMsg[10095] = get_promptmsg(10095);
             break;
         }
         if ($receivelists['GetOrdersResponse']['PaginationResult']['TotalNumberOfPages'] < $page) {
             self::$errMsg[10096] = get_promptmsg(10096, $page, $receivelists['GetOrdersResponse']['PaginationResult']['TotalNumberOfPages']);
             break;
         }
         $page++;
         $hasmore = $receivelists['GetOrdersResponse']['HasMoreOrders'] == 'true' ? true : false;
         foreach ($receivelists['GetOrdersResponse']['OrderArray']['Order'] as $simpleorder) {
             /*参考变量
             		 * $orderid = $simpleorder['OrderID'];
             		$eBayPaymentStatus = $simpleorder['CheckoutStatus']['eBayPaymentStatus'];
             		$OrderStatus = $simpleorder['CheckoutStatus']['Status'];
             		$PaidTime = $simpleorder['PaidTime'];
             		$ShippedTime = isset($simpleorder['ShippedTime']) ? $simpleorder['ShippedTime'] : '';*/
             if ($simpleorder['CheckoutStatus']['Status'] != 'Complete') {
                 continue;
             }
             /*//如果要抓取刷单的这里需要做修改
             		if ($simpleorder['CheckoutStatus']['eBayPaymentStatus']!='NoPaymentFailure') {
             			break;
             		}*/
             $simplelists[] = array('ebay_orderid' => $simpleorder['OrderID'], 'ebay_account' => $this->authorize['account']);
         }
     }
     return $simplelists;
 }
开发者ID:ohjack,项目名称:newErp,代码行数:46,代码来源:ebayButt.action.php

示例15: act_login

 public function act_login()
 {
     $userName = trim($_REQUEST['useremail']);
     $password = trim($_REQUEST['userpassword']);
     $where = 'is_delete=0 AND email="' . $userName . '"';
     $ret = M("BacksatagesLogin")->getAdmin("*", $where);
     if (empty($ret)) {
         self::$errMsg[10135] = get_promptmsg(10135);
         //self::$errMsg=g;
         return false;
     }
     $loginInfo = M("interfacePower")->userLogin($userName, $password);
     if (!$loginInfo) {
         self::$errMsg[10136] = get_promptmsg(10136);
         return false;
     } else {
         //登录成功
         $tmp = array("userId" => $loginInfo['userId'], "userToken" => $loginInfo['userToken'], "userName" => $loginInfo['userName'], "userCnName" => $loginInfo['userCnName'], "globalUserId" => $loginInfo['globalUserId']);
         setcookie('hcAdmin', _authcode(json_encode($tmp), 'ENCODE'), 0, "/");
         $_SESSION['loginStatus'] = "in";
         self::$errMsg[200] = get_promptmsg(200);
         return true;
     }
 }
开发者ID:bizonix,项目名称:sailvan,代码行数:24,代码来源:backstagesLogin.action.php


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