|
|
|
@ -8,6 +8,7 @@ use App\Libs\FeiePrintClient; |
|
|
|
use App\Model\v3\Feprint; |
|
|
|
use App\Model\v3\OrderMain; |
|
|
|
use App\Service\v3\Interfaces\FeiePrintServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\HelperServiceInterface; |
|
|
|
use Hyperf\DbConnection\Db; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
|
|
|
|
@ -20,6 +21,12 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
*/ |
|
|
|
protected $log; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var HelperServiceInterface |
|
|
|
*/ |
|
|
|
protected $helperService; |
|
|
|
|
|
|
|
// *必填*:飞鹅云后台注册账号
|
|
|
|
const USER = '13161443713@163.com'; |
|
|
|
// *必填*: 飞鹅云后台注册账号后生成的UKEY 【备注:这不是填打印机的KEY】
|
|
|
|
@ -130,6 +137,8 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
//$shopnum 当前为第几个店铺
|
|
|
|
$shopnum = 0; |
|
|
|
//循环处理子订单
|
|
|
|
$arr->name = $this->helperService->filterEmoji($arr->name); |
|
|
|
$arr->address = $this->helperService->filterEmoji($arr->address); |
|
|
|
foreach ($arr->orders as $k5 => $order) { |
|
|
|
$orderInfo .= ' <BR>'; |
|
|
|
$shopnum++; |
|
|
|
|