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


PHP CommonModel::getczPicture方法代码示例

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


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

示例1: act_getPicture

 public function act_getPicture($ordersn, $starttime, $endtime, $scanuser, $pictype, $pic_status, $limit)
 {
     $srcArr = array();
     if (empty($ordersn) && $pictype == 'cz') {
         $picArr = CommonModel::getczPicture($ordersn, $starttime, $endtime, $scanuser, $limit);
         //称重
         self::$errCode = $picArr['res_code'];
         self::$errMsg = "{$picArr['res_msg']}";
         if ($picArr['data']) {
             $audited = 0;
             foreach ($picArr['data'] as $value) {
                 $times = $value['scantime'];
                 //时间戳转时间格式
                 $src1 = date("Y/m/d", "{$times}");
                 $src2 = $value['ebay_id'];
                 $src = self::$cz . $src1 . "/cz_" . $src2 . ".jpg";
                 /* $isright	=get_headers($src);
                 			if(!preg_match('/200/',$isright[0])){
                 				$src="http://cz.valsun.cn/$src1/cz_$src2.jpg";
                 			} */
                 $srconerror = "http://cz.valsun.cn/{$src1}/cz_{$src2}.jpg";
                 $status = PictureAuditModel::isaudit($src2, $pictype);
                 if (isset($pic_status) && $status == $pic_status) {
                     $srcArr[] = array("src" => $src, "srconerror" => $srconerror, "ebayid" => $src2, "scanuser" => $scanuser, "scantime" => $times, "stype" => "cz");
                 } else {
                     $audited += 1;
                 }
             }
             $srcArr['audited'] = $audited;
             return $srcArr;
         } else {
             return false;
         }
     }
     if (empty($ordersn) && $pictype == 'fh') {
         $picArr = CommonModel::getfhPicture($ordersn, $starttime, $endtime, $scanuser, $limit);
         //复核
         self::$errCode = $picArr['res_code'];
         self::$errMsg = "{$picArr['res_msg']}";
         //var_dump($picArr);
         if ($picArr['data']) {
             $audited = 0;
             foreach ($picArr['data'] as $value) {
                 $amount = $value['amount'];
                 $times = $value['scantime'];
                 //时间戳转时间格式
                 $src1 = date("Y/m/d", "{$times}");
                 $src2 = $value['ebay_id'];
                 $src = self::$fh . $src1 . "/fh_" . $src2 . ".jpg";
                 /* $isright	=get_headers($src);
                 			if(!preg_match('/200/',$isright[0])){
                 				$src="http://fh.valsun.cn/$src1/fh_$src2.jpg";
                 			} */
                 $srconerror = "http://fh.valsun.cn/{$src1}/fh_{$src2}.jpg";
                 $status = PictureAuditModel::isaudit($src2, $pictype);
                 if (isset($pic_status) && $status == $pic_status) {
                     $srcArr[] = array("src" => $src, "srconerror" => $srconerror, "ebayid" => $src2, "scanuser" => $scanuser, "scantime" => $times, "stype" => "fh", "amount" => $amount);
                 } else {
                     $audited = $audited + 1;
                 }
             }
             $srcArr['audited'] = $audited;
             return $srcArr;
         } else {
             return false;
         }
         //var_dump($srcArr);exit;
         //return $srcArr;
     }
     if (!empty($ordersn)) {
         $srcArr = array();
         $picArr1 = CommonModel::getfhPicture($ordersn, "", "", "", "");
         //复核
         if (!empty($picArr1['data'])) {
             foreach ($picArr1['data'] as $value) {
                 $amount = $value['amount'];
                 $scanuser = $value['user'];
                 $times = $value['scantime'];
                 //时间戳转时间格式
                 $src1 = date("Y/m/d", "{$times}");
                 $src2 = $value['ebay_id'];
                 $src = self::$fh . $src1 . "/fh_" . $src2 . ".jpg";
                 /* $isright	=get_headers($src);
                 			if(!preg_match('/200/',$isright[0])){
                 				$src="http://fh.valsun.cn/$src1/fh_$src2.jpg";
                 			} */
                 $srconerror = "http://fh.valsun.cn/{$src1}/fh_{$src2}.jpg";
                 //$status		=	PictureAuditModel::isaudit($src2);
                 $srcArr[] = array("src" => $src, "srconerror" => $srconerror, "ebayid" => $src2, "scanuser" => $scanuser, "scantime" => $times, "stype" => "fh", "amount" => $amount);
             }
         }
         $picArr2 = CommonModel::getczPicture($ordersn, "", "", "", "");
         //称重
         if (!empty($picArr2['data'])) {
             foreach ($picArr2['data'] as $value) {
                 $scanuser = $value['packinguser'];
                 $times = $value['scantime'];
                 //时间戳转时间格式
                 $src1 = date("Y/m/d", "{$times}");
                 $src2 = $value['ebay_id'];
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:pictureAudit.action.php


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