|
|
|
@ -9,6 +9,7 @@ use App\Model\v3\Feprint; |
|
|
|
use App\Model\v3\OrderMain; |
|
|
|
use App\Service\v3\Interfaces\FeiePrintServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\HelperServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\OrderStatisticsServiceInterface; |
|
|
|
use Hyperf\DbConnection\Db; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
|
|
|
|
@ -27,6 +28,12 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
*/ |
|
|
|
protected $helperService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var OrderStatisticsServiceInterface |
|
|
|
*/ |
|
|
|
protected $orderStatistics; |
|
|
|
|
|
|
|
// *必填*:飞鹅云后台注册账号
|
|
|
|
const USER = '13161443713@163.com'; |
|
|
|
// *必填*: 飞鹅云后台注册账号后生成的UKEY 【备注:这不是填打印机的KEY】
|
|
|
|
@ -218,6 +225,9 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
}else{ |
|
|
|
$orderInfo .= '自提时间:' . $arr->delivery_time_note . '<BR>'; |
|
|
|
} |
|
|
|
$orderStatistics = $this->orderStatistics->getForMarket($arr->market_id); |
|
|
|
$str = sprintf ("%05d", $orderStatistics); // 生成5位数,不足前面补0
|
|
|
|
$orderInfo .= $arr->global_order_id.$str; |
|
|
|
//$orderInfo .= '<QR>http://www.feieyun.com</QR>';//把解析后的二维码生成的字符串用标签套上即可自动生成二维码
|
|
|
|
return $orderInfo; |
|
|
|
} |
|
|
|
|