|
@@ -4,6 +4,7 @@ namespace app\data\model;
|
|
|
|
|
|
use app\data\model\helpers\PurchaseMatched;
|
|
|
use app\data\model\helpers\PurchaseShow;
|
|
|
+use Carbon\Carbon;
|
|
|
use think\admin\Model;
|
|
|
|
|
|
class ShopCoordination extends Model
|
|
@@ -40,6 +41,6 @@ class ShopCoordination extends Model
|
|
|
}
|
|
|
public static function onBeforeInsert(self $model)
|
|
|
{
|
|
|
- $model['order_no']=sprintf('%s%s','Cbz',str_replace('.','',microtime(1)));
|
|
|
+ $model['order_no']=sprintf('%s%s','Cbz',str_replace(['-',' ','.',':'],'',Carbon::now()->toDateTimeString('microsecond')));
|
|
|
}
|
|
|
}
|