| xqd
@@ -2647,9 +2647,9 @@ class AlbumController extends Controller
|
|
|
$user_agent->is_show_ma_price = $data['is_show_ma_price'];
|
|
|
$user_agent->save();
|
|
|
|
|
|
- $product = AlbumProductModel::where('store_id',$data['store_id'])->get(['id','price_default']);
|
|
|
+ $product = AlbumProductModel::where('store_id',$data['store_id'])->get(['id','ma_price']);
|
|
|
foreach ($product as $key=>$val) {
|
|
|
- $save['price'] = $val['price_default'] * (1 + $data['point'] / 100);
|
|
|
+ $save['price'] = $val['ma_price'] * (1 + $data['point'] / 100);
|
|
|
$check = AlbumProductPriceModel::where([['agent_id',$user_agent->id],['store_id',$data['store_id']],['product_id',$val['id']]])->first();
|
|
|
if(empty($check)){
|
|
|
$save['agent_id'] = $user_agent->id;
|